Test Renewal First
sudo certbot renew --dry-runA dry run goes through the full renewal against the Let's Encrypt test system and saves nothing. It runs your pre and post hooks, but not your deploy hooks unless you add --run-deploy-hooks. If it ends with a message that all simulated renewals succeeded, the real renewal will work under the same conditions.
Run it after every change that touches the domain: a firewall rule, DNS, a server move, or the web server configuration.
Why Renewal Must Be Automatic
- Lifetimes are short: Let's Encrypt certificates are valid for 90 days today. For its default profile, Let's Encrypt has announced 64 days from 10 February 2027 and 45 days from 16 February 2028.
- All public certificates are shrinking: the CA/Browser Forum's ballot SC-081 set a maximum of 200 days from 15 March 2026, 100 days from 15 March 2027, and 47 days from 15 March 2029.
- No reminders: Let's Encrypt stopped sending expiry e-mails on 4 June 2025. A failed renewal stays silent unless you monitor it.
What Runs Renewal
The timer's name depends on how Certbot was installed:
- apt (Ubuntu, Debian):
certbot.timer, which runscertbot.servicetwice a day. - snap:
snap.certbot.renew.timer, which runssnap.certbot.renew.service. - EPEL (AlmaLinux, Rocky Linux):
certbot-renew.timer, which runscertbot-renew.service.
systemctl list-timers | grep -i certbotThe apt package and the snap start their timer on installation. If the EPEL timer is not listed, switch it on with sudo systemctl enable --now certbot-renew.timer. To see what the timer ran and whether it failed, read the log of its service, for example journalctl -u certbot.service for the apt package. More on timers and units is in how to list services with systemctl.
On a system without a Certbot timer, add a cron entry in /etc/cron.d/certbot-renew. Running it twice a day is normal, because renew does nothing until a certificate is due. Cron's search path is short, so give the full path that command -v certbot prints:
17 3,15 * * * root /usr/bin/certbot renew --quietCheck that only one of the two exists with how to list cron jobs.
Reload Services with a Deploy Hook
A renewed certificate is only used after the service reloads. The --nginx and --apache plugins do this for the web server. Certificates obtained with certonly, and services such as a mail server or a proxy that read the same files, need a deploy hook. A deploy hook runs once for each certificate that was really renewed.
Give it when you obtain the certificate, and Certbot stores it with the certificate:
sudo certbot certonly --webroot -w /var/www/example.com -d example.com --deploy-hook "systemctl reload nginx"For an existing certificate, Certbot 2.3.0 and later can change the stored setting with reconfigure, which saves the change only after a test renewal passes. Debian 12 ships 2.1, which lacks it:
sudo certbot reconfigure --cert-name example.com --deploy-hook "systemctl reload nginx"Certbot also runs every executable script in /etc/letsencrypt/renewal-hooks/deploy/ after each renewal. Such a script can be two lines, a #!/bin/sh shebang and systemctl reload postfix, with mode 755.
See What You Have
sudo certbot certificatesThis lists every certificate with its names, expiry date, days left, and file paths. A certificate that shows a recent date while browsers still see the old one means the service was not reloaded.
Common Renewal Failures
- Port 80 closed: HTTP-01 validation needs it on every renewal, not only the first time.
- DNS changed: the name now points to a CDN or another server, or an old AAAA record remains.
- Webroot moved: the path stored with the certificate no longer matches the site's document root. Obtain the certificate again with the new
-wpath. - Standalone and a running web server: the standalone method needs port 80 for itself. Switch to
--nginx,--apache, or--webroot. - DNS plugin credentials: an API token that was revoked or narrowed stops DNS-01 renewals.
The full trace of each run is in /var/log/letsencrypt/letsencrypt.log. Avoid --force-renewal in scripts: it renews whether or not the certificate is due and can run into Let's Encrypt's rate limits.
Remove a Certificate You No Longer Need
Take the domain out of the web server configuration, test it with sudo nginx -t or sudo apachectl configtest, reload, and then delete the certificate with Certbot. Never delete the files under /etc/letsencrypt by hand; that leaves broken renewal entries behind.
sudo certbot delete --cert-name old.example.comTo watch expiry dates from outside, see how to check an SSL certificate's expiry date.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations