A certificate expiring is rarely the real problem. The real problem is that renewal stopped working weeks earlier and nothing told anyone. By the time visitors see a full-page browser warning, the job that was supposed to prevent it has usually been failing, or not running at all, for a month.

This post covers the common ways automated Let's Encrypt renewal fails quietly, and a short set of checks that catch each one well before the expiry date.

Why renewal failures are silent#

Three things combine to make these failures easy to miss:

  • Renewal runs unattended. Most Certbot installations come with a scheduled task (a cron job or systemd timer) that runs certbot renew in the background. When it fails, the error goes to a log file or a local mailbox that nobody reads.
  • The old certificate keeps working. A failed renewal changes nothing you can see. The site stays up and the padlock stays green until the day the old certificate actually expires.
  • Let's Encrypt no longer emails you. Let's Encrypt used to send expiry warning emails, and they were a safety net for a lot of broken setups. That service ended on June 4, 2025. If you're still counting on "I'll get an email if something goes wrong," you won't.

Certificate lifetimes are also getting shorter. Let's Encrypt has announced a move from 90-day to 45-day certificates, in stages through 2028, so a failing renewal job gives you less and less time before it turns into an outage.

The renewal job isn't running at all#

This is the simplest failure and one of the most common. The timer was never enabled on this server, or it was lost when the server was rebuilt, or Certbot was reinstalled a different way (for example, moving from a distro package to snap) and the old schedule went with it. Some setups never had a schedule in the first place, because the first certificate was issued by hand.

Check whether anything is scheduled:

systemctl list-timers | grep -i certbot
grep -ri certbot /etc/crontab /etc/cron.d/ 2>/dev/null

Then check whether a renewal would actually succeed right now, without waiting for the real one:

sudo certbot renew --dry-run

--dry-run runs the full renewal against Let's Encrypt's staging environment and doesn't save the resulting certificates, so it's safe to run any time. If it fails, your real renewal will fail too.

Finally, see what Certbot thinks it's managing and when each certificate expires:

sudo certbot certificates

It renewed, but the server never picked it up#

This one is especially frustrating because every log says success. Certbot wrote a fresh certificate to disk, but your web server or load balancer loaded the old one into memory at startup and is still serving it. Nothing reloaded it, so on expiry day the "renewed" site breaks anyway.

Whether a reload happens depends on how the certificate was set up. If anything other than Certbot's own web server integration uses the certificate (a reverse proxy, a mail server, a container that copies the files, a self-managed HAProxy), you need to tell Certbot to reload it. The documented way is a deploy hook, which runs only after a certificate is actually renewed:

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

Executable scripts placed in /etc/letsencrypt/renewal-hooks/deploy/ work the same way and apply to every certificate.

A related trap: more than one copy of the certificate. If the files get copied to several servers, or older copies with different file names are still lying around in a directory the server loads from, renewal can update one copy while the server keeps serving another. We'll come back to this one, because it happened to us.

The challenge can't get through anymore#

To renew, Let's Encrypt has to verify again that you control the domain. With the common HTTP-01 challenge, it fetches a token over plain HTTP on port 80 only. Something that worked when the certificate was first issued can quietly break this months later:

  • Port 80 closed. Someone tightened the firewall to "HTTPS only." Renewal fails on the next attempt.
  • Redirects. Let's Encrypt follows redirects, but only up to 10 of them, and only to http: or https: on ports 80 or 443. A redirect to a different port, or a redirect loop, breaks validation.
  • A WAF, CDN, or bot challenge in front of the site. A security layer that blocks unfamiliar clients, serves a JavaScript challenge, or answers from cache can stop the validation request from ever reaching the server that has the token.
  • DNS changes. The domain now points at a new host, a CDN, or a second server, and the validation request lands somewhere that doesn't have the token. If you use the DNS-01 challenge instead, moving DNS providers or rotating the API credentials your client uses breaks renewal the same way.
  • A CAA record. If someone adds a CAA DNS record that lists only a different certificate authority, Let's Encrypt is no longer allowed to issue for the domain, renewals included. See Let's Encrypt's CAA documentation.

certbot renew --dry-run catches all of these, because it goes through the same validation as a real renewal.

Rate limits and repeated failures#

Let's Encrypt limits how often you can fail. There's a limit of 5 failed validations per domain name per account per hour, and a limit of 5 certificates for the exact same set of names every 7 days. A renewal script stuck in a retry loop, or someone re-running a broken setup by hand over and over, can hit these limits and then be locked out right when you finally fix the real problem. Test fixes with --dry-run, which uses the staging environment, before retrying for real.

The job's own bugs: two we hit ourselves#

ShieldIngress issues and renews certificates for every domain on the platform with its own nightly renewal job, not Certbot. That didn't make us immune. Here are two silent failures we found in our own system.

A renewal job that crashed every night

Our nightly job started with a database query that asked for a column that didn't exist. The query errored before any renewal logic ran, every single night. The error went to a log line and nowhere else. No certificate was ever checked, and nothing visible changed until we found the error in the logs. The fix was one line. The real lesson was that a job failing at the very top never reaches its own alerting code, so "no alerts" looked exactly the same as "everything is fine."

Certificates with no recorded expiry date

The second one was subtler. Our job picks certificates "expiring within 30 days" by comparing a stored expiry date against today's date. Certificates issued before we started recording that date had an empty value, and in SQL, a comparison against an empty (NULL) value is never true. So those certificates were never "expiring," and they were never renewed. Two sites went out with expired certificates before we caught it.

While fixing it, we found the stale-copy problem from earlier too. One of our edge servers still had an old copy of those certificates, saved under an older file name, in the directory it loads certificates from. Even after a fresh certificate landed, that server kept serving the old, expired one.

What we changed:

  • A certificate with an unknown expiry date is now treated as due for renewal. Renewing early costs one extra certificate order; skipping it costs an outage.
  • If renewing one of those certificates fails, it now sends an alert like any other failed renewal, instead of staying quiet.
  • We filled in the real expiry dates for the old records.
  • When a certificate is deployed to an edge server, any leftover copy under the old file name is now removed and the server is reloaded.
The general lesson: a renewal check is only as good as its inputs. If a certificate is missing from the list being checked, or its expiry date is blank, or the file being renewed isn't the file being served, the job reports success and the certificate still expires.

Checks that actually catch it#

Every failure above has the same fix: check the certificate your visitors actually receive, from outside, on a schedule, rather than trusting that the renewal job ran.

To see the dates of the certificate a server is really serving:

openssl s_client -connect example.com:443 -servername example.com < /dev/null 2>/dev/null | openssl x509 -noout -dates

For a simple scheduled check, -checkend exits with an error if the certificate expires within the given number of seconds (here, 14 days), which makes it easy to wire into cron or any monitoring tool:

openssl s_client -connect example.com:443 -servername example.com < /dev/null 2>/dev/null \
  | openssl x509 -noout -checkend 1209600 || echo "example.com expires within 14 days"

A few rules that make this monitoring actually useful:

  • Check every server, not just the one DNS gives you. If you run more than one server or load balancer, connect to each one by its own address and pass the real hostname with -servername. Our stale-certificate problem only existed on one edge server; a check that happened to hit the other one would have looked fine.
  • Check every hostname. www and the bare domain are often separate certificates, and so are subdomains such as api or mail.
  • Alert with weeks to spare. Certbot renews when less than a third of a certificate's lifetime remains, about 30 days for a 90-day certificate. If a served certificate is down to two weeks, renewal has already failed more than once. You want to hear about it then, not on expiry day.
  • Make the alert go somewhere a person reads. An email to an address nobody watches, or a log line, is the same as no alert.

For a quick look at any domain without memorizing openssl flags, our free SSL Certificate Checker shows the served certificate's expiry date, along with the full chain, OCSP status, and protocol support. If a certificate looks fine in your browser but fails for other clients, that's a different problem, covered in Your SSL Cert Works in Chrome. Here's Why It's Broken Everywhere Else. For a field-by-field guide to what the checker reports, see How to Read Your SSL Certificate Checker Results.

On ShieldIngress, certificates are issued and renewed automatically, and every plan includes an email alert if a certificate fails to renew. You don't need any setup for that alert, and it doesn't depend on Let's Encrypt's old expiry emails.

Don't let a background job decide when your site breaks

ShieldIngress issues and auto-renews a Let's Encrypt certificate for every domain you add, and emails you if a renewal ever fails, on every plan.