comparisons 2026-12-05 ⏱ 3 min read

Certbot vs acme.sh vs lego: Which ACME Client?

Certbot vs acme.sh vs lego: Which ACME Client?

All three clients talk to the same ACME protocol, so any of them can get you a free certificate from Let's Encrypt or ZeroSSL. The difference is in how you install them, how they validate domains and how renewal is wired in. This comparison uses each project's own documentation. If you are new to the protocol, start with what the ACME protocol is.

The short version

Certbotacme.shlego
Written inPythonShell scriptGo
InstallOS package or snapOne shell line, no root neededSingle binary
Default CALet's EncryptZeroSSL (since v3)Let's Encrypt
Web server pluginsApache, NginxDeploy hooksNone, it writes files
DNS challengePlugins per providerDNS API scripts200+ providers built in
Renewalcertbot renew, timer or cronDaily cron job it installslego renew, you schedule it

Defaults change. Check the project pages before you rely on a row, especially the default CA.

Certbot

Certbot is the EFF client and the one most guides use. Its documentation lists plugins for Apache and Nginx that edit the server config for you, plus standalone and webroot modes. Since version 2.0.0 it defaults to ECDSA P-256 keys for new certificates. The renew command renews certificates that are ready. As of Certbot 4.0.0 that means less than one third of the lifetime remains. The documentation suggests running it daily or weekly from cron or a systemd timer.

sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run

Best for: a single Linux server with Apache or Nginx where you want the config edited for you. See the Certbot guide and how to automate renewal with Certbot.

acme.sh

acme.sh is a shell script with few dependencies. Its README says the installer copies the script to ~/.acme.sh/, creates an alias and adds a daily cron job that checks and renews certificates. You do not need root. Its wiki states that since v3 it uses ZeroSSL as the default CA, with a one-time account registration, and you can switch with --server.

curl https://get.acme.sh | sh -s email=you@example.com
acme.sh --issue -d example.com --dns dns_cf

Best for: containers, small servers, routers and any place where installing Python is a burden. See the acme.sh guide.

lego

lego is an ACME client and library in Go. Its site lists DNS-01, HTTP-01, TLS-ALPN-01 and DNS-PERSIST-01 challenges, more than 200 DNS providers, and support for several ACME servers. It lists support for ACME Renewal Information (RFC 9773) and for certificate profiles. The run command obtains a certificate and renew renews it. By default, lego renews only when the certificate expires in under 30 days, and you can change that with --days.

lego --email you@example.com --domains example.com \
  --http run
lego --email you@example.com --domains example.com \
  --http renew --days 30

lego writes example.com.crt and example.com.key into a .lego folder. The .crt file includes the CA certificate, so it works like a full chain file. Schedule renew yourself.

Best for: Go shops, wide DNS provider coverage, and embedding ACME in your own software.

What changes with shorter certificates

Let's Encrypt is moving its default lifetime from 90 days toward 45. A client that renews at a fixed 60 day interval will miss the window. Certbot and lego both support renewal logic based on a fraction of the lifetime or on ARI, and acme.sh checks daily. Whatever you pick, avoid a hardcoded renewal age, and keep an alert that fires when a certificate has fewer than ten days left. The same rule applies if you keep the client in a container: the renewal job and the web server reload must both survive a restart.

Which should you choose

  • You run Nginx or Apache on one Linux host: Certbot.
  • You want the lightest install or work in containers: acme.sh.
  • You need many DNS providers with one static binary: lego.
  • See the IIS auto-renew guide.

Whichever you pick, test renewal before you trust it, and plan for shorter lifetimes as described in the 64-day certificate guide. Verify the live result with the free SSL checker.

Sources: Certbot documentation (eff-certbot.readthedocs.io), acme.sh README and wiki, lego documentation (go-acme.github.io/lego).

🔒 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