Fix Let's Encrypt Renewal Failed
sudo certbot renew --dry-run and read the exact error. Most failures are a blocked port 80, a DNS record that changed, a redirect that hides the challenge file, or a web server that changed since the first issuance.Step 1: Get the real error
sudo certbot renew --dry-run
sudo tail -n 50 /var/log/letsencrypt/letsencrypt.log
The log shows which domain failed and the HTTP status or DNS answer Let's Encrypt received.
Step 2: Match the error
| Error text | Meaning | Fix |
|---|---|---|
| Timeout during connect | Port 80 not reachable from the internet | Open port 80 in the firewall and cloud security group |
| Connection refused | Nothing listens on port 80 | Start the web server or switch method |
| 404 / Invalid response | Challenge path is not served | Fix the webroot path or the location rule |
| Wrong content or redirected | Redirect to another host or an HTTPS-only rule | Allow /.well-known/acme-challenge/ over HTTP |
| NXDOMAIN or DNS problem | Domain does not resolve | Fix DNS, check with the DNS Lookup |
| CAA record forbids issuance | CAA does not list Let's Encrypt | Add 0 issue "letsencrypt.org", verify with the CAA Checker |
| Too many requests | Rate limit | Wait, and use --dry-run while testing |
| Permission denied | Certbot cannot write to the webroot or cert folder | Fix ownership and run as the right user |
Fix Let's Encrypt renewal failed: usual causes
A redirect catches the challenge. If every HTTP request redirects to HTTPS, that is fine as long as the redirect works for the challenge host. A redirect to a different domain or a login page breaks it. A safe Nginx pattern:
server {
listen 80;
server_name example.com www.example.com;
location /.well-known/acme-challenge/ { root /var/www/html; }
location / { return 301 https://$host$request_uri; }
}
The authenticator changed. If you first used --standalone and later started Nginx on port 80, standalone renewal fails. Switch the config to the nginx plugin or webroot in /etc/letsencrypt/renewal/example.com.conf.
A CDN or proxy sits in front. Make sure the challenge request reaches your origin, or use a DNS challenge.
Step 4: Renew and reload
sudo certbot renew --force-renewal --cert-name example.com
sudo systemctl reload nginx
Use force renewal only after fixing the cause. Then confirm the live expiry with the SSL Checker.
If it keeps failing
- Remove old certificates you no longer use with
certbot certificatesandcertbot delete, since a dead domain can fail the whole run. - Switch to a DNS challenge if port 80 cannot be opened.
- Issue a certificate by another route, such as TryFreeSSL.com, as a stopgap.
See also the Certbot automation guide.
Fix Let's Encrypt renewal failed next time
- Test with a dry run after any server or DNS change.
- Monitor expiry from outside.
- Keep the renewal timer and deploy hook documented.
Related reading: automatic renewal, expiry alerts as the safety net and Automate SSL Certificate Deployment.
Frequently Asked Questions
How do I know the certificate expires soon?
Check with sudo certbot certificates or the SSL Checker.
Will I get an email?
If you provided an address, Let's Encrypt has historically sent expiry reminders, but do not rely on that. Set up your own monitoring.
Can I fix it without downtime?
Yes. A reload keeps existing connections open.
What about wildcard certificates?
They use DNS validation. Check that the DNS plugin credentials are still valid.
Why did renewal work last time and fail now?
Something changed on the server or in DNS: a new firewall rule, a redirect added to the http virtual host, a moved document root, or a DNS record pointed elsewhere. The dry run error names which check failed.
Does the 64-day lifetime change anything about failures?
It shortens the window. With 90-day certificates a failure could sit unnoticed for weeks; with 64 days and then 45, the same failure reaches expiry sooner, so watch the renewal log rather than the calendar.
✅ 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.