The certificate renewed. The site still said expired.
Auto-renewal wrote the new certificate to disk and the proxy kept serving the old one until it expired. Why renewal is two steps, and the hook that makes the second one automatic.
The certificate renewal ran on schedule. The log said success. The new certificate was on the disk. And the store still showed every customer a browser warning that the site was not secure, from early morning until someone noticed. Automatic renewal did its job. Nobody had told the server to start using the result.
Renewal is two steps, not one
Free certificates from Let’s Encrypt expire every ninety days, and the renewal tool handles the first step well: it proves control of the domain, fetches a new certificate and writes it to disk. That is where most setups stop. The web server, or the proxy in front of it, loaded the old certificate into memory when it started and keeps serving that one until it is reloaded. If nothing reloads it, the new certificate sits on disk unused while the old one expires in production.
On a plain server the renewal tool usually reloads the web server for you. The failures happen on anything slightly more layered: a reverse proxy in a container, a load balancer, a second web server on the same box, or a proxy that the renewal tool does not know exists.
What happened on this store
The store runs behind a proxy container that terminates TLS. Renewal ran on the host, wrote the new certificate into a folder the container reads, and finished. The container had no idea anything had changed. Thirty days later the old certificate expired and the store went dark for every browser on the planet at the same minute.
The fix took one command: tell the proxy to reload its configuration. The permanent fix took one line: a hook on the renewal tool that runs that command every time a certificate is issued. The store now renews and reloads without anyone involved.
Why this one matters more than most outages
A certificate failure is a total outage that does not look like one from the inside. The server is up, the application is healthy, monitoring that checks for a 200 response may well pass. Meanwhile every visitor sees a full-page warning and most of them leave. For a store it is lost sales from the first minute. For a publisher it is lost traffic and a search engine that starts to notice.
How we prevent it now
- Every renewal has a reload hook for every process that serves the certificate, including proxies and containers the renewal tool does not manage.
- External monitoring checks the certificate itself, not just the HTTP status: days to expiry and whether the served certificate matches the one on disk. A warning at fourteen days means a human looks before anything breaks.
- Renewals are tested with a dry run after any change to the web server, the proxy or the DNS, because that is when they silently stop working.
- Every site we host is on the same list, checked the same way, so an expiry on a quiet site is caught as fast as on a busy one.
If your site has ever shown the warning
It will do it again unless the reload step is wired in. Check what serves the certificate, check what the renewal tool reloads, and if the two lists differ, that is the gap. This is also one of the first things we audit when we take over hosting of a site that has been running on autopilot.
Got a similar problem? Talk to us.
Start a project