troubleshooting 2026-12-02 ⏱ 3 min read

How to Fix Certbot Renewal Errors

How to Fix Certbot Renewal Errors

Certbot renewal errors almost always come down to validation: the CA could not reach your server to confirm control of the domain. Start by reproducing the failure on demand, then read the exact error.

Step 1: Run a dry run and read the log

sudo certbot renew --dry-run
sudo tail -n 80 /var/log/letsencrypt/letsencrypt.log
sudo certbot certificates

The dry run uses the staging server, so it does not count against production rate limits. The log contains the validation URL and the response that failed.

Certbot renewal errors, step 2: match the error

Error message containsLikely causeFix
Connection refused / Timeout during connectPort 80 blocked by a firewall or the web server is downOpen port 80 and start the server
Invalid response / 404 for .well-knownWebroot path wrong, or a rewrite rule intercepts the challengeFix the webroot_path or exclude /.well-known/acme-challenge/
DNS problem: NXDOMAIN or SERVFAILDNS record missing or brokenFix DNS, check with the DNS Lookup
Could not bind to port 80Standalone mode while Nginx or Apache is runningUse the nginx or apache plugin, or webroot
too many certificates / rate limit50 certificates per registered domain per 7 days, or 5 failed validations per identifier per hour (rate limits)Wait, and test with staging
CAA record forbids issuanceCAA does not allow Let's EncryptUpdate the record, verify with the CAA Checker
Unauthorized / 403Security rule or a CDN blocks the requestAllow the challenge path, or use DNS validation

Common fixes

Switch authenticator. If you originally used standalone mode, change to a method that works alongside the running server by editing the file in /etc/letsencrypt/renewal/:

authenticator = webroot
webroot_path = /var/www/html

Redirects. A global HTTP to HTTPS redirect is fine, as the CA follows redirects. But a redirect to a different host that is down, or a rule that returns 403 for hidden paths, will break validation.

Wildcards. These need DNS validation. Use a DNS plugin so the TXT record is created automatically at each renewal. See how to get a free wildcard certificate.

Certbot renewal errors, step 3: confirm the timer is running

systemctl list-timers | grep certbot
sudo systemctl status certbot.timer

If there is no timer, check /etc/cron.d/certbot. Container and snap installs differ, so use your install method's documentation.

Step 4: Reload the server after renewal

Renewal replaces files on disk, but your web server must reload them. Add a deploy hook:

sudo certbot renew --deploy-hook "systemctl reload nginx"

Step 5: Verify

Check the live certificate's expiry date with the SSL Checker. If the date has not changed, the server is still serving the old file. For long-term protection, add alerts as shown in monitoring SSL certificate expiration.

Prevent the next failure

Keep Certbot updated, avoid changing web server layout without updating the renewal config, and run a dry run after any change to firewall, DNS, redirects, or hosting. Do not count on expiry emails: Let's Encrypt stopped sending them on 4 June 2025 (Let's Encrypt announcement), so set an outside expiry alert.

Related reading: Free SSL Certificate with Certbot: Step by Step, renewing a free SSL certificate automatically and installing free SSL on Docker.

Frequently Asked Questions

Does a dry run count against rate limits?

It uses the staging environment, which has separate, more relaxed limits.

My certificate expired. Can I still renew?

Yes. Fix the underlying problem and run sudo certbot renew. Expired certificates can be renewed.

Where are my certificates stored?

In /etc/letsencrypt/live/yourdomain/, as symlinks to the current files.

Why does Certbot renew only some certificates?

It renews only certificates that are due. Since Certbot 4.0.0 that means less than a third of the lifetime is left, which is 30 days on a 90-day certificate, about 21 on a 64-day one and 15 on a 45-day one (Certbot docs). Before 4.0.0 the window was a fixed 30 days.

Why does Certbot say my certificate is not due for renewal?

Certbot skips certificates that still have more than a third of their lifetime left (Certbot docs). Use --dry-run to test renewal. A forced renewal issues a new certificate and counts toward the limit of 50 per registered domain per 7 days (rate limits).

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ 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 www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant