Certificate Revocation and CRL

Manage certificate revocation in case of compromise or change.

Certificate revocation is the process that invalidates an SSL certificate before its expiration date. It's an essential security measure in case of private key compromise, organization change, or simply when a certificate is no longer needed.

Two main mechanisms allow checking revocation: CRLs (Certificate Revocation Lists) and OCSP (Online Certificate Status Protocol). Understanding these mechanisms is crucial for maintaining your infrastructure security.

MoniTao monitors your certificates and helps you maintain healthy SSL infrastructure. In case of revocation need, you'll be prepared with new keys and certificates.

What is Revocation?

Understanding revocation concepts:

Reasons to Revoke a Certificate

When should you revoke a certificate:

How to Revoke a Certificate

Steps to revoke your certificate:

  1. Prepare the replacement: before revoking, generate a new certificate to avoid any service interruption.
  2. Contact your CA: log into your account at the certificate authority and find the revocation option.
  3. Indicate the reason: you'll often need to specify the reason for revocation (compromise, change, etc.).
  4. Confirm and install the new one: after confirmation, immediately install the new certificate on your server.

Check Revocation Status

How to check if a certificate is revoked:

# Check via OCSP
openssl s_client -connect example.com:443 2>/dev/null | \
  openssl x509 -noout -ocsp_uri
# Result: http://ocsp.example-ca.com

# Manual OCSP request
openssl ocsp -issuer chain.pem -cert cert.pem \
  -url http://ocsp.example-ca.com -resp_text

# Download and check the CRL
curl -O http://crl.example-ca.com/crl.pem
openssl crl -in crl.pem -text -noout

# Let's Encrypt - Revoke with Certbot
certbot revoke --cert-path /etc/letsencrypt/live/domain/cert.pem

These commands allow checking a certificate's status or revoking it via Certbot for Let's Encrypt.

Best Practices

Tips for revocation management:

Revocation Checklist

  • New certificate generated
  • New certificate tested
  • Old certificate revoked via CA
  • New certificate installed
  • Old private key deleted
  • Monitoring updated

Frequently Asked Questions

Is revocation instantaneous?

No, there can be several hours delay before all clients see the revocation, depending on their CRL/OCSP caches.

Can I "un-revoke" a certificate?

No, revocation is permanent. You must obtain a new certificate.

What happens if I don't revoke a compromised certificate?

An attacker could use it for MITM attacks until it expires. Revocation is essential.

How do I revoke a Let's Encrypt certificate?

Use the command certbot revoke --cert-path /path/to/cert.pem.

Do browsers really check revocation?

Most use OCSP with soft-fail: if OCSP doesn't respond, they accept the certificate. Chrome uses its own lists.

Does MoniTao detect revoked certificates?

MoniTao checks certificate validity. A revoked certificate will cause an SSL error that triggers an alert.

Prepare for Revocation

Revocation is a situation we hope to avoid but must be prepared for. A clear procedure and replacement certificates ready minimizes the impact of a compromise.

With MoniTao, maintain an overview of your certificates and be ready to react quickly if revocation is needed.

Ready to Sleep Soundly?

Start free, no credit card required.