Skip to content

How to Verify Certificate Revocation with OpenSSL CRL

DodaTech Updated 2026-06-24 2 min read

Certificate Revocation Lists (CRLs) are published by CAs listing revoked serial numbers. This guide walks through the specific troubleshooting steps to diagnose and resolve CRL verification issues.

Before You Begin

Before you begin, be sure to have the following in place:

  • A Linux server with the relevant software installed
  • Access to the command line interface
  • Appropriate permissions (root or sudo)

Quick Fix

Wrong

openssl crl -in crl.pem -noout -text | grep -c Revoked

Wrong: Just checking CRL metadata without verification

wget -q -O crl.pem http://crl.example.com/intermediate.crl && openssl crl -in crl.pem -CAfile ca.pem -noout && openssl verify -crl_check -CAfile <(cat ca.pem crl.pem) server.pem

Right: Downloading, verifying CRL signature, and checking cert against it

Output

CRL verified OK\nserver.pem: OK (certificate not revoked)

Prevention

To avoid future issues, follow these best practices:

  • Download updated CRLs regularly before they expire
  • Verify the CRL signature with -CAfile before trusting its contents
  • Use OCSP for real-time revocation checks instead of relying solely on CRLs
  • Monitor CRL expiry times and alert before they become stale
  • Always specify the CRL distribution point from the certificate being checked

DodaTech Tools

For further assistance with any of the above issues, consider using DodaTech consulting services or DodaTech tutorials for more in-depth guidance.

Common Mistakes with crl verify

  1. Non-exhaustive pattern matches that compile with warnings then crash at runtime
  2. Misunderstanding that String is [Char] with poor performance for large text operations
  3. Using foldl instead of foldl' causing stack overflow on large lists

These mistakes appear frequently in real-world OPENSSL code. DodaTech's contributors have identified these patterns through analysis of open-source projects and production systems.

Practice Exercise

Write a pure function that safely divides two integers using Maybe, then test it with edge cases like division by zero and negative numbers.

This exercise reinforces the concepts covered in this guide. Try implementing it before checking online solutions.

FAQ

How do I find the CRL URL for a certificate?|||Run openssl x509 -in cert.pem -noout -text | grep -A4 CRL Distribution. The output shows the URL where the issuing CA publishes its CRL.
What happens if a CRL expires? If the CRL expires, the certificate status becomes unknown. Most TLS libraries treat unknown status as a potential error or fall back to OCSP.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro