Check first: server or device?
Open the site in the SSL check. If it shows an expired certificate, the server is at fault. If the certificate is valid, it is the device showing the error. On the command line:
echo | openssl s_client -connect www.example.com:443 -servername www.example.com 2>/dev/null | openssl x509 -noout -dates
Cause on the server
- Automatic renewal failed. With certbot check
systemctl list-timers | grep certbotandcertbot renew --dry-run. Common reasons: port 80 blocked, DNS changed, webroot path moved. - Renewed but not reloaded. The new certificate is on disk, nginx or Apache still serve the old one. Use a deploy hook:
--deploy-hook "systemctl reload nginx". - Load balancer, CDN or appliance have their own copy. The web server is up to date, but the old certificate still sits in front of it, e.g. on HAProxy, a firewall or a mail gateway.
- An expired intermediate is still in an old chain file. Then your own certificate is valid, but the chain is not.
Cause on the device
- Wrong time. Common after a dead CMOS battery, with virtual machines after reverting to a snapshot, or on devices without time sync. Fix the clock and enable automatic time.
- Certificate “not yet valid”. If the clock is in the past, a freshly issued certificate is not yet valid from the device’s point of view.
- Very old devices do not know new root certificates. That usually shows as ERR_CERT_AUTHORITY_INVALID, but sometimes as a date error.
So it does not happen again
Certificates are getting shorter: since March 2026 public certificates may be valid for at most 200 days, from March 2027 only 100. Without monitoring something will slip eventually.
- Add all servers, including mail and LDAP, to the certificate expiry overview. It creates calendar entries and ready-made checks for Nagios, Icinga, Checkmk, Zabbix and Prometheus.
- Embed an expiry badge in your README or wiki. The SSL check generates the code.
- With certbot, test
certbot renew --dry-runregularly. Let's Encrypt has not sent expiry reminder emails since June 2025, so your own monitoring is a must.
FAQ
How do I quickly tell whether my clock is wrong?
Open a well-known large site. If the error appears there too, it is almost certainly the clock or an antivirus.
My certificate is renewed, but the browser still shows the old one?
The web server was not reloaded after renewal, or a load balancer with its own copy sits in front. The SSL check shows serial number and expiry of what is really delivered.
Does clearing the browser cache help?
Rarely. The browser checks the certificate on every connection. Restarting the browser is worth a try if you have just fixed the clock.