Use acme.sh for Free SSL Certificates
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
| Method | Command | Use when |
|---|---|---|
| Webroot | acme.sh --issue -d example.com -d www.example.com -w /var/www/html | Site already runs on port 80 |
| Standalone | acme.sh --issue -d example.com --standalone | Nothing is using port 80 |
| DNS API | acme.sh --issue -d example.com -d '*.example.com' --dns dns_cf | Wildcards 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.sh | Certbot | |
|---|---|---|
| Dependencies | Plain shell script | Python or snap |
| DNS provider plugins | Many built in | Separate plugins |
| Auto edit of web server config | No | Yes, 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
--debugto 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
--stagingwhile 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/
Does it support wildcards?
Yes, with a DNS-01 challenge through one of its DNS API plugins. HTTP-01 cannot issue a wildcard.
✅ 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
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.