Expired certificates cause some of the most embarrassing outages: everything works, until one morning every browser shows a security warning. Automation with ACME (the protocol used by Let's Encrypt and many other certificate authorities) has made renewals routine, but renewals still fail quietly, and certificate lifetimes are getting shorter, so there are more renewals to fail.

How ACME works

  1. Your ACME client (certbot, acme.sh, cert-manager, Caddy, Traefik and others) asks the certificate authority for a certificate.
  2. The CA gives a challenge to prove you control the domain:
    • HTTP-01: serve a token at http://<domain>/.well-known/acme-challenge/<token>.
    • DNS-01: publish a TXT record _acme-challenge.<domain>; required for wildcard certificates.
    • TLS-ALPN-01: answer on port 443 with a special certificate.
  3. The CA verifies the challenge and issues the certificate.
  4. The client installs it and reloads the server, and repeats before expiry.

Shorter lifetimes

Let's Encrypt certificates have long been valid for 90 days, and the industry has agreed to reduce maximum public certificate lifetimes in stages over the coming years. Shorter lifetimes reduce the damage from a leaked key but mean renewal must be fully automated and monitored; manual renewal stops being an option.

How renewals fail silently

FailureWhy
HTTP-01 challenge blockedA redirect, firewall or CDN rule stops the CA reaching port 80
DNS-01 credentials expiredThe DNS API token was rotated or revoked
Renewal ran, reload did notThe new certificate sits on disk while the server serves the old one
The renewing server was decommissionedCron or timer lived on a machine that no longer exists
Rate limitsToo many failed attempts or duplicate certificates
CAA recordsA DNS CAA record does not allow your CA

In every case, renewal "works" in the sense that nothing alerts, until expiry.

Make renewal robust

  • Use one well-maintained client per environment (cert-manager in Kubernetes, Caddy or Traefik at the edge, certbot with a systemd timer on servers).
  • Ensure the reload hook runs after renewal: certbot renew --deploy-hook "systemctl reload nginx".
  • Prefer DNS-01 for wildcard and internal names; store API tokens with the least privilege the DNS provider allows.
  • Renew early: most clients renew around 30 days before expiry for 90-day certificates.
  • Add a heartbeat to the renewal job, so a job that stops running alerts.

Monitor from outside

The only reliable proof is checking the certificate actually served, from outside, on every hostname:

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

An uptime tool with SSL checks does this continuously and warns at, say, 21 and 7 days before expiry. Include API, status, admin and staging hostnames, which are the ones people forget. See SSL certificate expiry monitoring and SSL handshake failed.

Worked example

A team moved its site behind a CDN that redirected all HTTP traffic to HTTPS. Their certbot HTTP-01 challenge started failing, because the redirect sent the CA to a host without the token. Renewal logs showed errors nobody read. Thirty days later, an SSL check warned 21 days before expiry. They switched to DNS-01, added a heartbeat to the renewal timer and a reload hook, and the next renewal succeeded automatically.

In VitalRix

Uptime monitoring includes SSL checks that warn before a certificate expires, alongside HTTP checks on the same hosts, and heartbeat monitors catch renewal jobs that stop running. See SSL certificate monitoring.

Common mistakes

  • Relying on the CA's expiry emails, which go to old addresses or spam.
  • Monitoring only the main domain.
  • Not reloading the server after renewal.
  • Wildcard certificates on many servers without a plan to distribute renewals to each.

Kubernetes with cert-manager

In Kubernetes, cert-manager issues and renews certificates as resources. Watch its Certificate objects' Ready condition and expiry, and alert when a certificate is not Ready or its renewal time has passed. An outside SSL check on the ingress hostname is still the final proof, because a valid certificate in a secret is useless if the ingress does not serve it.

kubectl get certificates -A
kubectl describe certificate <name> -n <namespace>   # Ready condition, renewal time, last failure
How long are Let’s Encrypt certificates valid?

They have been valid for 90 days, and public certificate lifetimes are being reduced in stages across the industry, so automation is essential.

HTTP-01 or DNS-01?

HTTP-01 is simplest for public web servers. DNS-01 is needed for wildcards and works for hosts not reachable from the internet.

How far ahead should I be warned?

Warn at around 21 days and again at 7, early enough to fix a broken renewal calmly.

Try VitalRix free

Uptime monitoring, APM, logs, real user monitoring and status pages in one place. No credit card needed.