ssl-guides 2026-12-02 ⏱ 3 min read

Use acme.sh for Free SSL Certificates

Use acme.sh for Free SSL Certificates
Quick Answer: Install acme.sh, set Let's Encrypt as the default CA, issue a certificate with acme.sh --issue, then use acme.sh --install-cert with a reload command so renewals are deployed automatically.

acme.sh: install

curl https://get.acme.sh | sh -s email=admin@example.com
source ~/.bashrc

The installer adds a daily cron job. Review the script before piping it to a shell if that matters in your environment. Then set the CA, because acme.sh defaults to ZeroSSL in recent versions:

acme.sh --set-default-ca --server letsencrypt

Issue a certificate

MethodCommandUse when
Webrootacme.sh --issue -d example.com -d www.example.com -w /var/www/htmlSite already runs on port 80
Standaloneacme.sh --issue -d example.com --standaloneNothing is using port 80
DNS APIacme.sh --issue -d example.com -d '*.example.com' --dns dns_cfWildcards or no open port 80

For Cloudflare DNS, export an API token first with export CF_Token="..." and the account or zone ID that the plugin documents. acme.sh stores them for renewals.

Install the certificate for your server

Do not point your server at acme.sh's internal folder. Copy the files to a stable path and reload:

acme.sh --install-cert -d example.com \
  --key-file       /etc/ssl/example.com/privkey.pem \
  --fullchain-file /etc/ssl/example.com/fullchain.pem \
  --reloadcmd      "systemctl reload nginx"

Use the same paths in your Nginx or Apache config. acme.sh remembers the settings and runs the reload command after each renewal.

acme.sh: renewal

The cron job calls acme.sh --cron daily and renews certificates that are due. Test and inspect with:

acme.sh --list
acme.sh --renew -d example.com --force

Use --force sparingly, since repeated issuance can reach the rate limits. Check results with the SSL Checker.

acme.sh or Certbot?

acme.shCertbot
DependenciesPlain shell scriptPython or snap
DNS provider pluginsMany built inSeparate plugins
Auto edit of web server configNoYes, with plugins

See the Certbot guide for the other option. If you only need a quick one-off certificate, TryFreeSSL.com can issue one in the browser.

Troubleshooting

  • Run with --debug to see the challenge details.
  • Check that DNS points to the server with the DNS Lookup.
  • Make sure a redirect does not break the HTTP challenge path.
  • Rate limited? Wait and use the staging server with --staging while testing.

Related reading: getting a certificate with Certbot, automating renewal and HTTP-01 validation.

Frequently Asked Questions

Should I run acme.sh as root?

Run it as the user that owns the certificate files, and give that user only the permissions needed to reload the service. Running as root is common for simple servers.

Where are the certificates stored?

In acme.sh's own home folder. Always deploy copies with --install-cert.

Does it support wildcards?

Yes, through DNS validation.

How do I move to another server?

Copy the acme.sh account and domain folders, or issue a new certificate on the new host.

Do I need root to run acme.sh?

Only to install into system paths and to reload the web server. The client runs as a normal user, and the cron job can run under that user.

Where are the certificates stored?

Under ~/.acme.sh// by default. The install command copies them to the paths your web server reads.

Does it support wildcards?

Yes, with a DNS-01 challenge through one of its DNS API plugins. HTTP-01 cannot issue a wildcard.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant