Free ops runbook · TLS lifecycle

Certificate renewed but the browser still sees the old one

The renewal log says success, the files on disk have new dates, and the browser still shows a certificate that expires in two days. On a reverse proxy the certificate is loaded into memory at start, so writing a new file changes nothing until something tells the server to read it again. On a fleet, one instance is usually missed.

This page is free. It covers how to compare the certificate on disk with the certificate actually served, why a successful renewal is not a successful deploy, and the monitoring that fails before the expiry page does.

Scope: reviewed from the ACME and vendor documentation, no live reproduction
Verified against the Let's Encrypt subscriber documentation, RFC 8555, the Certbot documentation and the nginx control documentation on 2026-11-26. Paths and timer names below are the common package defaults; command output is the expected shape, not a capture from a live host.
Two different events

Issued is not deployed

Issuance

The ACME client completes a challenge and writes a new certificate and key to its storage directory. This is the step that most monitoring watches, and it is the step that usually succeeds.

Activation

The server process reads the new files, validates the chain and starts presenting them. Without a reload, hook or restart, the old certificate stays in memory until the process is replaced.

What the browser sees

Only the certificate presented in the TLS handshake for that SNI name. A file with a fresh timestamp proves nothing about the handshake.

Where it hides

Multiple server blocks, a copied certificate in /etc/ssl, a container image built with the old files, or a CDN that terminates TLS before your origin is ever reached.

Detect

Compare served, stored and scheduled

Command or viewWhat it tells you
echo | openssl s_client -connect "$HOST:443" -servername "$HOST" 2>/dev/null | openssl x509 -noout -subject -issuer -datesThe certificate the server actually presents for that name, with its not-after date. Use SNI or you may see the default vhost.
openssl x509 -in /etc/letsencrypt/live/"$HOST"/fullchain.pem -noout -datesThe certificate on disk. If this is newer than the served one, the reload did not happen.
certbot certificatesEvery lineage the client knows, its expiry and the file paths. Two lineages for one name is a common wrong-path cause.
certbot renew --dry-runWhether renewal would succeed now, including challenges and hooks, without consuming a rate limit.
systemctl list-timers | grep -i -E 'certbot|acme'Whether a timer exists, when it last ran and when it runs next. A timer that never runs looks exactly like a certificate that never expires, until it does.
nginx -T 2>/dev/null | grep -n 'ssl_certificate'Which files each server block loads. A block pointing at a copy or an old lineage will keep serving it after renewal.
for ip in $ORIGIN_IPS; do echo "== $ip"; curl -sS --resolve "$HOST:443:$ip" "https://$HOST" -o /dev/null -w '%{ssl_verify_result}\n'; donePer-instance verification behind a load balancer. One stale node fails while the service as a whole looks healthy.
Failure modes

Seven ways renewal succeeds and TLS still breaks

#Failure modeWhat you seeWhat to do
1No deploy hookcertbot renew logs success, the files are new, and the served certificate keeps its old not-after date.Install a deploy hook that runs the configuration test and a reload, and fail the hook loudly if either command fails.
2The server reads a different pathRenewal writes under /etc/letsencrypt/live while the vhost loads a copy from /etc/ssl.Make one path authoritative, point every vhost at it, and grep the rendered configuration for certificate paths after every change.
3One instance in the fleet missedThe probe passes because it hits a healthy node; users behind another node get the expired certificate.Probe every origin address with SNI, and reload as part of the same rollout that renews.
4Renewal failed silentlyNo new file, no alert. The challenge failed because port 80 was closed, a DNS token was missing, or a redirect swallowed the path.Alert on renewal failure and on remaining lifetime, not only on the expiry date; run --dry-run after every proxy change.
5Monitoring the file, not the handshakeDashboards are green because the file is fresh; the handshake still presents the old certificate.Monitor the served certificate over TLS from outside, on every name, and alert at a fixed number of days remaining.
6Incomplete chain after renewalBrowsers work, command-line clients and some mobile stacks fail with an unknown issuer.Serve the full chain including intermediates, and test with a client that does not cache intermediates.
7Termination happens somewhere elseThe origin certificate is perfect, but the CDN or load balancer presents its own certificate and that is what expires.Inventory every TLS termination point, including managed ones, and monitor the certificate each one presents.
Design

Make the reload part of the renewal

DecisionQuestion to answer
AuthorityWhich path is the only certificate source, and does every vhost, container and image build read from it?
HookDoes the deploy hook run the config test first, then a graceful reload, and does a failure page someone?
ProbeDo we check the handshake for each name and each origin address, not the file timestamp?
Warning lineAt how many days remaining does the alert fire, and is that longer than the time it takes a human to act?
RollbackIs the previous certificate kept until the new one has served traffic successfully for a full day?
Verify

Four drills that catch the silent case

Dry run

Run the renewal dry run on a schedule, not only after setup. It exercises the challenge, the hook and the reload path without touching the live certificate.

Forced renewal on staging

Renew a staging certificate and confirm the served certificate changes within one reload cycle. Record how long it took.

Reload failure

Break the configuration on purpose in staging and confirm the hook fails loudly and leaves the old certificate serving instead of taking the site down.

Expiry alarm

Set the warning threshold temporarily high and confirm the alert reaches a human with the host, the name and the days remaining.

FAQ

Questions from the on-call channel

Renewal succeeded. Why is the browser still unhappy?

Because success refers to issuance. Check the served certificate with openssl s_client and compare its dates with the file. If the served one is older, the process did not reload or is reading another path.

Is a restart safer than a reload?

A graceful reload is usually enough and avoids dropping connections. A restart is the fallback when the process does not pick up the new files. Either way, test the configuration first so a bad file does not take the listener down.

Our CDN terminates TLS. Do we still need origin renewal?

Yes, for the connection between the CDN and the origin, and for any name that bypasses the CDN. Both certificates expire, and they are usually renewed by different systems with different alerts.

How early should the alert fire?

Early enough that a human can debug a failed challenge and still have time for a manual issuance. Pick a threshold based on your slowest realistic fix, not on the certificate lifetime.

Sources

Primary sources

Going deeper on the change window?

The paid runbooks cover the surrounding failures: shrinking certificate lifetimes on a public schedule, cache rules that hide a deploy, and platform defaults that only bite on a real domain.

This page is free, no checkout. Paid runbooks are $9.99 each and covered by the 7-day refund policy at /runbooks/refund.