Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed)
Renewal succeeded on disk, but nginx/Apache wasn't reloaded, so clients keep seeing the expiring certificate.
Certbot renewed but nginx still serves old certificateHook command returned error coderenew_hook failed reload nginxdeploy-hook certbotcertificate renewed but site still shows expired Meaning
Add a deploy hook: --deploy-hook "systemctl reload nginx" (or in /etc/letsencrypt/renewal-hooks/deploy/), make sure the web server reads live/ paths (not copied files), and test with certbot renew --dry-run. Check hook scripts are executable and don't error.
Common causes
- No reload hook configured
- Hook script not executable or failing
- Server config points at copied certificates
- Reload requires privileges
- Other service (mail, HAProxy) uses the cert without reload
⚡ Quick fix
certbot renew --deploy-hook "systemctl reload nginx"- Place executable scripts in
renewal-hooks/deploy/ - Verify served expiry date
Detailed fix by platform
Shell
- bash
printf '#!/bin/sh systemctl reload nginx ' | sudo tee /etc/letsencrypt/renewal-hooks/deploy/reload.sh sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/reload.sh sudo certbot renew --dry-run
How to diagnose
- Hook — Present, executable?
- Config — Uses live/?
- Served expiry — New?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- archive /etc/letsencrypt/live/<domain>/privkey.pem symlink to archive unreadable (permissions after certbot upgrade)
- Django Django send_mail: ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] (EMAIL_USE_SSL vs EMAIL_USE_TLS on the wrong port)
- DNS plugin Certbot DNS plugin: Error determining zone / invalid credentials (Cloudflare/Route53 API token)
Most viewed in SSL / TLS
- HTTPSConnectionPool: Max retries exceeded (SSLError) Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))
- DST Root CA X3 expired (old clients fail) Old clients: certificate has expired — Let's Encrypt chain uses expired DST Root CA X3 (OpenSSL 1.0.x, Android < 7.1.1)
- Keystore was tampered with, or password was incorrect Java keytool: java.io.IOException: Keystore was tampered with, or password was incorrect
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026