If You Are a Visitor
- Check the date and time on your device: a clock that is days or years off makes every valid certificate look expired. Turn on automatic date and time, then reload.
- Try other sites: if many sites show the same error, the cause is your device. If only one does, the site's certificate has expired.
- Try another network or browser: a network that intercepts HTTPS, such as some public Wi-Fi login pages, can present its own outdated certificate.
Do not click through the warning on a site where you log in or pay. If only that site fails, tell its owner.
If You Own the Site: See What the Server Presents
Check the dates of the certificate the server sends right now:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -dates -subjectIf notAfter is in the past, the certificate has expired. If notBefore is in the future, it is not valid yet. Test the bare domain and the www name, and IPv4 and IPv6 separately with -4 and -6: one of them may present an old certificate. More options are in openssl s_
The Usual Causes
- Renewal failed: the timer is missing or switched off, port 80 was closed, or DNS changed. Let's Encrypt stopped sending reminder e-mails in June 2025, so this often goes unnoticed.
- Renewed but not reloaded: the new certificate is on disk, but the web server still holds the old one in memory.
- Wrong file: the configuration points to an old copy of the certificate instead of the path Certbot keeps up to date.
- A second server or address: a load balancer, another server behind the same name, or an old AAAA record serves an outdated certificate.
- A CDN or proxy: the certificate at the edge is managed in the CDN's dashboard, not on your server. An expired certificate on the origin behind Cloudflare in strict mode shows up as Cloudflare error 526 instead.
Fix an Expired Let's Encrypt Certificate
See what Certbot has on disk:
sudo certbot certificatesIf the listed certificate is still valid, the web server was not reloaded or points to another file. Test and reload:
sudo nginx -t && sudo systemctl reload nginxOn Apache, test with sudo apachectl configtest and reload apache2 or httpd. If the listed certificate has expired too, renew it and read the error if it fails:
sudo certbot renew --cert-name example.com
sudo tail -n 50 /var/log/letsencrypt/letsencrypt.logFix the cause the log names, then run sudo certbot renew --dry-run so the next renewal is tested. Timers, hooks, and failures are covered in how to renew Let's Encrypt certificates. For a certificate from another authority, order the renewal, install the new certificate with its intermediate chain, and reload.
Check the Server Clock
A wrong server clock does not change the dates in a certificate, but it breaks renewal tools and makes a newly created self-signed certificate start in the future. Check it:
timedatectlThe output should say that the system clock is synchronized and that the NTP service is active. If it is not, turn on synchronization:
sudo timedatectl set-ntp trueTime zones are covered in how to change the timezone in Ubuntu.
Confirm the Fix
- Run the openssl command from the second section again and check that
notAfterlies in the future. - Open the site in a private browser window so no cached state is used.
- Repeat for every name on the certificate, and for IPv6 if the domain has an AAAA record.
Keep It from Happening Again
Let's Encrypt certificates last 90 days today, with 64 days announced for its default profile from 10 February 2027 and 45 days from 16 February 2028. The CA/Browser Forum's ballot SC-081 also shortens the maximum for all public certificates, to 100 days from 15 March 2027. Make renewal automatic, test it with a dry run, and add an outside check such as the script in how to check an SSL certificate's expiry date.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations