Replace a revoked SSL certificate on your website
NET::ERR_
Why a certificate gets revoked
You or your host asked for it
When you or your host ask the authority to revoke a certificate, for example after replacing it, it has 24 hours to do so. Any server, load balancer or CDN that never loaded the replacement keeps sending the revoked one.
The private key was exposed
Once a certificate authority has evidence that a certificate's private key was compromised, it must revoke the certificate within 24 hours.
Domain validation fell through
If the authority learns that its check of your control over the domain can't be relied on, including a CAA check it got wrong, it also has 24 hours to revoke.
It broke the issuing rules
A certificate later found to break the industry's issuing rules or the authority's own policy, or one that was misused, must be revoked within five days.
The CA/Browser Forum's Baseline Requirements list every revocation reason and deadline in section 4.9.1.1, and section 6.1.1.3 makes authorities refuse a key reported as compromised. Chromium's net_
Check whether your certificate is revoked
# Show the serial number, issuer and dates of the certificate yoursite.com sends
echo | openssl s_client -connect yoursite.com:443 -servername yoursite.com 2>/dev/null \
| openssl x509 -noout -serial -issuer -dates
# Check that certificate against its authority's revocation list. This needs OpenSSL
# 1.1.1 or later: macOS ships LibreSSL as openssl, and it rejects -crl_download
echo | openssl s_client -connect yoursite.com:443 -servername yoursite.com \
-crl_check -crl_download 2>&1 | grep "Verify return code"
Read the result
Verify return code: 0 (ok)means the certificate isn't on its authority's current revocation list, and23 (certificate revoked)means the list includes it. Trust a 0 only when the first command printed a serial number: if the handshake fails and no certificate arrives, s_client still reports 0. 3 (unable to get certificate CRL)means openssl couldn't get the list, for example because the certificate gives no address for one. The serial number identifies the exact certificate: if it differs from the newest one your host or renewal tool shows, a server is still sending an old one. OpenSSL's s_client manual covers-crl_download, and its verification error list explains each code.Chrome doesn't generally check revocation online. The Chromium project says Chrome relies on CRLSets, a list it downloads and whose version shows at chrome://components, mainly to block certificates in emergencies, plus a subset of revocations gathered from authorities' lists. An enterprise policy can turn online checks on. So a revoked certificate can still load for some visitors and fail for others, and a clean result in one browser doesn't prove the certificate is fine.
How to replace a revoked certificate
- Find out why it was revokedCheck messages from your certificate authority or host for the reason. If the private key leaked, treat anything else that used that key as exposed too.
- Request a new certificate with a new keyGenerate a fresh private key for the replacement. Authorities must refuse a request that reuses a key they've been told is compromised.
- Install it on every layerLoad the new certificate on each server, load balancer and CDN that answers HTTPS for the site, then reload them so none of them keeps sending the revoked one.
- Confirm the serial changedRun both commands for every hostname visitors use. Each should show the new serial number and a return code of 0.
Frequently asked questions
Can visitors get past a revoked certificate warning?
No. Chrome treats revocation as a warning visitors can't override, and its page says they can't visit the site right now "because its certificate has been revoked". The wording is in Chromium's interstitial strings.
Can a revoked certificate be restored?
No. RFC 5280 only lets a revoked certificate count as valid again when it was merely put on hold, and the Baseline Requirements forbid the hold reason for publicly trusted website certificates. A new certificate is the only way out.
Why does the site still load in some browsers?
Browsers learn about revocations in different ways and at different times, and Chrome blocks only the revoked certificates its CRLSet includes, unless an enterprise policy turns on online checks. Treat any revocation as final and replace the certificate, even while your own browser still loads the site.
Fix other certificate warnings
- Domain healthFix the setup mistakes that make browsers warn people away from your site.
- Connection not private warningRead the code under Chrome's certificate warning, then fix the date, name or trust problem it names.
- Expired SSL certificateFind out whether the certificate expired or a clock is wrong, then renew it and serve the new one.
- Untrusted SSL certificateReplace a self-signed certificate or send the missing intermediate so browsers trust it.