Guide
How to Automate SSL Renewal with ACME and Certbot
With lifetimes collapsing toward 47 days, manual renewal is already dead — a certificate renewing eight times a year cannot depend on a human calendar. ACME automation is the answer, and it takes one afternoon to set up correctly.
The 10-minute Certbot setup
Issue + auto-renew with Nginx
bashsudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
# Test the renewal path before trusting it:
sudo certbot renew --dry-run
# Then let the built-in timer handle it (twice-daily check, renews <30d left):
systemctl status certbot.timerTwo details people skip: always run --dry-run (staging environment, no rate limits burned), and verify the timer actually exists — half of “certbot didn't renew” incidents are a missing cron/systemd timer on a rebuilt server.
HTTP-01 vs DNS-01: pick once, correctly
- HTTP-01: serves a token on port 80. Simplest for single servers; fails behind strict firewalls and can't do wildcards.
- DNS-01: sets a TXT record. Required for
*.yourdomain.comwildcards; needs your DNS provider's API token stored for automation — rotate it and scope it to TXT edits only.
The deploy hook everyone forgets
Renewing the file is half the job — the server must load it. Add a hook (e.g. --deploy-hook "systemctl reload nginx") or you'll serve a shiny new certificate from disk while visitors get the expired one from memory. Verify after every renewal with an external check, not localhost.
Automation needs a watchdog
ACME tells you nothing when it breaks — no email, no page, just an expiry date approaching at full speed. Independent expiry monitoring watches what visitors actually receive, catching failed renewals, missing hooks, and half-deployed fleets. Set it up free in 30 seconds and stop thinking about renewal forever.
Never miss an expiry again
Certack monitors SSL certificates, DNS records, and domain expiry continuously and alerts you on 9 channels before anything lapses. Two sites free, no credit card required.
Related guides
How to Check SSL Certificate Expiration: Browser, OpenSSL, curl & Online
Four reliable ways to check when an SSL certificate expires — in your browser, with OpenSSL, with curl, or with a free online checker — plus what the expiry date actually means.
How Long Do SSL Certificates Last? Validity in 2026 and the Road to 47 Days
Public TLS certificates last 200 days max since March 2026, dropping to 100 days in 2027 and 47 days in 2029. What the CA/Browser Forum timeline means for renewal automation.
What Happens When an SSL Certificate Expires?
Browser warnings, failed API calls, dropped search rankings, and broken integrations — exactly what breaks when a certificate lapses, and how to recover fast.