Certbot is supposed to renew your certificates on its own. When it stops, nothing tells you. Go through these four checks in order.
1. Is the renewal timer running?
Most installs use a systemd timer. One of these should list it with a next run time:
systemctl list-timers | grep -i certbot
# snap installs:
systemctl list-timers | grep snap.certbot
No timer? Look for a cron entry in /etc/cron.d/certbot. If that's missing too, nothing is renewing your certificates.
2. Did the last run succeed?
sudo journalctl -u certbot.service --since "-30 days"
sudo tail -n 50 /var/log/letsencrypt/letsencrypt.log
You want to see Congratulations, all renewals succeeded. Anything about failed challenges means it didn't work.
3. Would a renewal work right now?
sudo certbot renew --dry-run
If this fails, it's usually one of these:
- HTTP challenge blocked: port 80 closed in the firewall, or a redirect that doesn't let
/.well-known/acme-challenge/through. - DNS challenge: the DNS provider's API token expired or lost permissions.
- Changed web root or server config: the path in
/etc/letsencrypt/renewal/example.com.confno longer matches. - Rate limits: too many failed attempts in a short time. Wait an hour and fix the cause first.
4. Is the renewed certificate being served?
Renewing only writes new files. nginx, Apache, HAProxy and mail servers keep serving the old certificate until they reload. Compare the two dates:
sudo certbot certificates
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
| openssl x509 -noout -enddate
If they don't match, add a deploy hook: an executable script in /etc/letsencrypt/renewal-hooks/deploy/ that runs
systemctl reload nginx (or whatever serves the certificate).
Noticing it next time
Certbot renews once a certificate has less than 30 days left. So any certificate under 30 days means renewal is broken. A check that warns at 30 days will catch it, whether that's a cron job, your existing monitoring or CertNudge.