Renew an SSL Certificate Without Downtime
Why renewals cause downtime
Downtime usually comes from three things: stopping the web server to free port 80 for validation, forgetting to reload so the old certificate stays in memory, and discovering the expiry only when browsers start showing warnings. All three are avoidable.
Automatic renewal with Certbot
sudo certbot renew --dry-run
sudo systemctl list-timers | grep certbot
The dry run confirms your renewal configuration works. Certbot 4.0.0 and later renews a certificate when less than a third of its lifetime remains: 30 days before expiry on a 90-day certificate and about 21 on a 64-day one, which becomes Let's Encrypt's default on 10 February 2027 (Certbot docs, Let's Encrypt announcement). If you used the webroot method, nothing needs to stop. If you used standalone, switch to webroot or the Nginx or Apache plugin so the server can keep running. Then add a hook so the server picks up new files:
sudo certbot renew --deploy-hook "systemctl reload nginx"
# or Apache
sudo certbot renew --deploy-hook "systemctl reload apache2"
To make the hook permanent, put a script in /etc/letsencrypt/renewal-hooks/deploy/.
Manual renewal (paid or panel certificates)
- Generate a CSR (reuse your key or create a new one, see the key and CSR guide).
- Submit it and complete validation. DNS-based validation lets you finish before touching the server.
- Test the new files:
nginx -torapachectl configtest. - Check the key matches the certificate with the key matcher.
- Replace the files, then reload.
Always include the intermediate chain. A leaf-only certificate works in some browsers and fails in others.
Restart vs reload
| Action | Effect | Use for certificates? |
|---|---|---|
| reload | Re-reads config and certificates, keeps connections | Yes |
| restart | Stops and starts, drops connections | Only if reload fails |
| stop / start | Full outage while stopped | Avoid |
Load balancers and multiple servers
Renew in one place and distribute the files, or use DNS-01 validation on each node. Reload the nodes one at a time, and verify each before the next. Cloud load balancers and CDNs often store certificates separately, so renewing on the origin may not update them. If a CDN is involved, check the Cloudflare 526 guide for origin issues.
Verify and monitor
- Check the live certificate and expiry date with the SSL checker, or many domains at once with the bulk SSL checker.
- From the shell:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates - Set an alert at least 14 days before expiry. Do not rely on CA emails: Let's Encrypt ended its expiration emails on 4 June 2025.
FAQ
How early should I renew?
When a third of the lifetime is left: about 30 days before expiry for 90-day certificates and about 21 days for 64-day ones. For longer certificates, start a few weeks ahead.
Does renewing change my private key?
Not necessarily. You choose whether to reuse the key or generate a new one. A new key is better practice.
Why does my browser still show the old certificate?
The server was not reloaded, or a CDN or load balancer still holds the old one.
What if renewal fails?
Read the Certbot log in /var/log/letsencrypt/, fix the cause such as DNS or firewall, and rerun the renewal before expiry.
✅ 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.