An SSL certificate normally lives until it expires and is then replaced. Sometimes, though, it has to be killed early. That is revocation. The certificate authority publishes the revoked status through dedicated lists, and that information reaches browsers and other software. Revocation does not delete files on your server or stop your site; it only withdraws trust in the certificate.
Why revocation exists
A certificate binds a domain name to a public key, and the matching private key should exist only with the site owner. If the private key leaks, an attacker can impersonate your site while the certificate is still valid. Revocation closes that gap: you tell the CA the certificate is no longer trustworthy, and it announces this publicly.
When you must revoke
- The private key leaked. It was pushed to GitHub, an old backup ended up with outsiders, or the server was compromised.
- You no longer own the domain. After selling or transferring it, your old certificate is a risk to the new owner.
- The certificate contains wrong data. An OV or EV certificate with an incorrect organisation name or address should be revoked and reissued.
- The service is permanently shut down and nobody can guarantee the key stays safe.
Many situations need no revocation at all. Routine renewal, moving to another server or switching from RSA to ECDSA only require installing the new certificate. The old one expires on its own, and Let's Encrypt certificates last just 90 days.
How browsers learn about revocation
Revocation data is distributed in two ways: CRLs, lists of revoked certificates the CA publishes regularly, and OCSP, where a client asks about one certificate in real time. Let's Encrypt has announced a move away from OCSP towards CRLs, so check their official documentation for the current state. Browsers handle revocation differently; some ship condensed revocation lists with updates, and few query every site live. Don't assume revocation takes effect instantly everywhere. It is an important safeguard, but the real protection is keeping keys safe and using short-lived certificates.
Revoking with Certbot
sudo certbot certificates
sudo certbot revoke --cert-name example.uz --reason keycompromise
# other reasons: unspecified, superseded,
# affiliationchanged, cessationofoperation
sudo certbot delete --cert-name example.uz
If the domain still needs a certificate, obtain and install the new one first, then revoke the old one. Otherwise the site briefly serves a revoked certificate and some visitors may see errors.
A zero-downtime order of operations
- Find and close the source of the leak: a stolen password, an exposed folder, an old backup.
- Generate a new private key; never reuse the compromised one.
- Issue and install a new certificate, then reload the web server.
- Confirm the site serves the new certificate.
- Only then revoke the old certificate with reason
keycompromise.
sudo certbot renew --cert-name example.uz --force-renewal
sudo systemctl reload nginx
echo | openssl s_client -connect example.uz:443 -servername example.uz 2>/dev/null \
| openssl x509 -noout -serial -dates
Example: an online shop parts ways with its developer
A small online shop in Samarkand ran misol.uz with an external developer. When the contract ended, the owner remembered that a server backup, including the SSL private key, remained on the developer's laptop. Even with an honest developer, that laptop could be lost or hacked. The owner changed every password, issued a certificate with a fresh key and revoked the old one. On sayt.uz hosting with automatic Let's Encrypt certificates, the owner would simply ask support to reissue and revoke; no server commands are needed, but understanding why the step matters helps make the right call.
Think before you revoke
Revocation is irreversible. Double-check the serial number and the --cert-name value so you don't revoke the wrong certificate, for instance the main one instead of a wildcard. When in doubt, install the replacement first, verify it, and revoke afterwards.