Fix an expired SSL certificate warning on your website
NET::ERR_
Why the certificate's dates fail
The certificate expired
Every certificate has an end date. If renewal didn't run, or ran and failed, browsers refuse the certificate as soon as that date passes.
The server still sends the old certificate
A renewed certificate does nothing until the server, load balancer or CDN that handles HTTPS loads it. One that was never reloaded keeps sending the expired certificate.
The visitor's clock is wrong
Browsers check the dates against the device's own clock. A clock set to the wrong day can make a valid certificate look expired or not yet valid.
Chromium's error list describes this error as a certificate that, by the browser's clock, has expired or isn't valid yet. See net_
Check the dates on the certificate your server sends
# Print the name and the start and end dates of the certificate yoursite.com sends
echo | openssl s_client -connect yoursite.com:443 -servername yoursite.com 2>/dev/null \
| openssl x509 -noout -subject -dates
Read the dates openssl prints
notBeforeis when the certificate starts being valid andnotAfteris when it runs out, both shown in GMT. IfnotAfteris in the past, your server is sending an expired certificate, even if you've renewed it.If the dates look right but a browser still warns, check that device's clock, then test each address your domain points to. A CDN edge or a second server can still be sending the old certificate. OpenSSL's s_
client manual explains each option.
How to fix an expired SSL certificate
- Find out who renews the certificateMost hosts and CDNs renew certificates for you. If yours does, look for a failed renewal in its certificate settings, for example because the domain's DNS no longer points at the host. If you renew it yourself, check your renewal tool's logs.
- Renew it and load the new certificateRenew the certificate, then reload or restart whatever handles HTTPS so it starts sending the new one. If a CDN or load balancer sits in front of your server, install the certificate there too.
- Check every name visitors useRun the openssl command again for each name, such as the version with www and the version without it. Each one can be served with a different certificate.
- Get a warning before the next expiryRenewal fails quietly, so the first sign is often a visitor telling you. Watch the certificate's end date so a failed renewal reaches you while there's still time to fix it.
Frequently asked questions
Can visitors click past an expired certificate warning?
Chrome usually offers a way past the warning under Advanced, but not on a site that uses HSTS. RFC 6797 tells browsers to stop on a certificate error for those sites and give visitors no way through.
Why does only one computer show the warning?
Usually because that computer's date or time is wrong. Antivirus software that scans HTTPS traffic can also cause certificate errors on one machine. If other devices load the site without a warning, start with that computer rather than your server.
How do I get a warning before my SSL certificate expires?
SiteCMD emails you before your SSL certificate runs out, so a renewal that failed reaches you before your visitors do.
Watch your certificate and domain dates
- Domain healthFix the setup mistakes that make browsers warn people away from your site.
- SSL certificate name mismatchFind the address your certificate leaves out, then get one that covers it.
- Untrusted SSL certificateReplace a self-signed certificate or send the missing intermediate so browsers trust it.
- Uptime monitoringGet an email when your site goes down and another when it's back up.