Revocation: CRLs, OCSP and Short-Lived Certificates
A web server is breached on Monday and its TLS private key is copied. The certificate is valid until next year. Until it expires, whoever holds the key can impersonate the server to any client that can be put on the path. Revocation is the mechanism for telling clients "do not trust this certificate any more", and it is the weakest part of the Web PKI. Its history explains why the industry is now moving to certificates that simply expire quickly.
Four approaches
| How it works | Weakness | |
|---|---|---|
| CRL (certificate revocation list, RFC 5280) | the CA publishes a signed list of revoked serial numbers at the URL in the certificate's CRL distribution points; clients download it | lists grow large; clients cache them; downloads fail |
| OCSP (RFC 6960) | the client asks the CA's responder about one serial number and gets a signed "good / revoked / unknown" | a privacy leak (the CA sees which sites you visit), latency, and clients "soft-fail" when the responder is unreachable |
| OCSP stapling (TLS extension, RFC 6066) | the server fetches its own OCSP response and attaches it to the handshake | only helps if clients insist on it ("Must-Staple", RFC 7633), which few did |
| short-lived certificates | lifetimes of days, so a stolen key is only useful briefly | needs fully automated issuance |
The key problem is soft-fail: if a client can't reach the OCSP responder, it usually connects anyway, because failing closed would break sites whenever a CA's server is slow. An attacker who can intercept traffic can also block the OCSP request, so soft-fail revocation protects least in exactly the situation it is for. Adam Langley called it "a seat belt that snaps when you crash".
What browsers actually do
- Chrome ignores OCSP and CRL URLs for ordinary certificates and uses CRLSets, a small list it pushes to browsers with revocations it considers important.
- Firefox has pushed CRLite, a compressed set of all revocations of the Web PKI built from CT logs and CRLs, to its clients, replacing live OCSP checks.
- The CA/Browser Forum made OCSP optional for public CAs in 2023 and requires CRLs. Let's Encrypt, the largest CA, removed OCSP URLs from its certificates in May 2025 and shut its OCSP responders down in August 2025, citing privacy and cost.
- Maximum lifetimes are falling (ballot SC-081): 398 days until March 2026, 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029. Let's Encrypt has also introduced optional 6-day certificates. The less time a stolen key can be used, the less revocation matters.
Inside an organisation (VPN client certificates, mTLS between services, smart cards), revocation still matters a great deal, and you control the clients, so you can make them check CRLs and fail closed.
A CRL in the lab
The session uses the lab CA key (lab-only) to sign a CRL that revokes the sample lab.test certificate, serial 0x1002, for key compromise. The CRL is built with the image's Python cryptography, then OpenSSL verifies the certificate with and without checking revocation.
P=$SAMPLES/pki
python3 - <<'PY'
import datetime
from cryptography import x509
from cryptography.hazmat.primitives import hashes, serialization
ca = x509.load_pem_x509_certificate(open("/opt/sec-samples/pki/ca.crt", "rb").read())
key = serialization.load_pem_private_key(open("/opt/sec-samples/pki/ca.key", "rb").read(), None)
t = datetime.datetime(2026, 6, 1)
revoked = (x509.RevokedCertificateBuilder().serial_number(0x1002).revocation_date(t)
.add_extension(x509.CRLReason(x509.ReasonFlags.key_compromise), critical=False).build())
crl = (x509.CertificateRevocationListBuilder().issuer_name(ca.subject)
.last_update(t).next_update(datetime.datetime(2036, 1, 1))
.add_revoked_certificate(revoked).sign(key, hashes.SHA256()))
open("lab.crl", "wb").write(crl.public_bytes(serialization.Encoding.PEM))
PY
openssl crl -in lab.crl -noout -text | grep -E 'Issuer|Last Update|Next Update|Serial Number|Revocation Date|Key Compromise'
echo "--- without a revocation check:"
openssl verify -CAfile $P/ca.crt $P/lab.test.crt
echo "--- with the CRL:"
openssl verify -crl_check -CAfile $P/ca.crt -CRLfile lab.crl $P/lab.test.crt 2>&1 Issuer: C = XX, O = ExcelTAD Lab, CN = ExcelTAD Lab Root CA
Last Update: Jun 1 00:00:00 2026 GMT
Next Update: Jan 1 00:00:00 2036 GMT
Serial Number: 1002
Revocation Date: Jun 1 00:00:00 2026 GMT
Key Compromise
--- without a revocation check:
/opt/sec-samples/pki/lab.test.crt: OK
--- with the CRL:
C = XX, O = ExcelTAD Lab, OU = Web, CN = lab.test
error 23 at 0 depth lookup: certificate revoked
error /opt/sec-samples/pki/lab.test.crt: verification failed
The same certificate is OK or error 23, certificate revoked, depending only on whether the verifier was told to look. Revocation is a client-side decision, which is the whole problem. (A real CRL has a nextUpdate days ahead, not ten years; clients must reject stale CRLs.)
Revocation in incident response
When a key is (or may be) compromised:
- Replace first: generate a new key, get a new certificate, deploy it.
- Revoke the old certificate with reason
keyCompromisethrough the CA's portal or ACME (certbot revoke --reason keycompromise). - Check CT logs for other certificates for your names that you didn't request (CT and ACME).
- Assume interception was possible for the window between theft and expiry, and review what the key protected (forward secrecy limits what recorded traffic reveals).
The 2014 Heartbleed bug (CVE-2014-0160) forced the largest mass revocation in the Web PKI's history; many sites replaced certificates without revoking the old ones, and many browsers would not have checked anyway.
How revocation weaknesses are detected
- Certificates: lifetimes longer than policy; missing CRL distribution points in private-PKI certificates; OCSP URLs that no longer answer.
- Clients: internal mTLS, VPN and smart-card clients that don't check CRLs or soft-fail (look for
-crl_checkequivalents,CRLFilesettings,ocspoptions in VPN configs). - Process: no documented procedure or contact for revoking a certificate in an incident; no inventory of which certificate is where.
How it is fixed
- Public TLS: automated renewal with short lifetimes (90 days now, less soon), revocation as a backup.
- Private PKI: CRLs with short
nextUpdate, clients configured to fail closed, OCSP stapling where available; short-lived service certificates issued by an internal ACME or SPIFFE/SPIRE-style system. - An incident runbook with step 1–4 above, rehearsed.
Pitfalls
- Revoking before the replacement is deployed: the site goes down.
- Believing that revocation "kills" a certificate everywhere: many clients never check.
- Keeping very long-lived internal certificates "because revocation exists".
Practice
1. Why does soft-fail OCSP protect least against an active network attacker?
The attacker who intercepts the TLS connection can also block or delay the OCSP request; the client then soft-fails and accepts the revoked certificate.
2. A VPN gateway authenticates 3,000 laptops with client certificates valid for 3 years. A laptop is stolen. What must be in place?
The gateway must check a CRL (or OCSP) for client certificates and fail closed; the laptop's certificate must be revoked promptly. Shorter certificate lifetimes and device-bound keys (TPM) reduce the risk further.
3. In the session, what single option made the difference between "OK" and "certificate revoked"?
-crl_check (together with -CRLfile): without it, OpenSSL doesn't look at revocation at all.
Test yourself
What does 'soft-fail' revocation checking mean?
- Revoked certificates are accepted with a warning
- If the revocation status can't be fetched, the client connects anyway
- CRLs are compressed
- OCSP responses are cached forever
Why is the Web PKI moving to shorter certificate lifetimes?
- Shorter certificates are faster
- A stolen key is only usable until the certificate expires, which reduces reliance on revocation
- CT requires it
- RSA keys wear out
What error did OpenSSL report when the CRL was checked?
- error 10 certificate has expired
- error 20 unable to get local issuer
- error 23 certificate revoked
- error 62 hostname mismatch
In an incident with a compromised TLS key, what should happen first?
- Revoke the certificate
- Deploy a new key and certificate
- Wait for expiry
- Disable TLS