Request Wildcard SSL Certificates with acme.sh

162 words
1 minute
Request Wildcard SSL Certificates with acme.sh

Request Wildcard SSL Certificates with acme.sh#

Let’s Encrypt provides free wildcard certificates. Combined with the acme.sh script, you can fully automate issuance and renewal — perfect for personal sites.

Install acme.sh#

Terminal window
curl https://get.acme.sh | sh -s [email protected]

Issue a Certificate (Cloudflare DNS API)#

1. Get Your Cloudflare API Key#

Log in to Cloudflare Dashboard, go to API Tokens, and get your Global API Key.

2. Configure the API Key#

Terminal window
export CF_Key="your-cloudflare-api-key"
export CF_Email="your-cloudflare-email"

3. Issue the Wildcard Certificate#

Terminal window
# Replace with your domain
./acme.sh --issue --dns dns_cf -d example.com -d *.example.com

4. Verification#

The certificate will be installed to ~/.acme.sh/. Check the auto-renewal cron job:

Terminal window
crontab -l

acme.sh automatically adds a scheduled task for renewal before expiration.

Working with Nginx Proxy Manager#

Copy the generated certificate files to NPM’s directory, or upload them manually through NPM’s web interface.

Notes#

  • Alibaba Cloud DNS, Tencent Cloud DNS, etc., also have their own DNS API scripts available in the acme.sh official repository
  • Wildcard certificates only support DNS verification, not HTTP
  • Certificates are valid for 90 days; acme.sh handles renewal automatically

References#

Support & Share

If this article helped you, please share or support!

Sponsor
Request Wildcard SSL Certificates with acme.sh
https://blog.zinzin.cc/posts/acme-wildcard-ssl-en/
Author
gzdyj
Published at
2026-07-23
Profile Image of the Author
gzdyj
Code, life, and everything in between.
Announcement
Welcome to my blog! This is a sample announcement.
Categories
Tags
Latest Moments
Site Statistics
Posts
8
Categories
4
Tags
27
Total Words
13,116
Running Days
0 days
Last Activity
0 days ago
Site Info
Build Platform
GitHub Actions
Blog Version
Firefly v6.14.5
License
CC BY-NC-SA 4.0