opyeb mtlslab

mtlslab · Revocation

CRL and OCSP — the two ways to check revocation

A certificate can be revoked long before it expires. Without a revocation check, the certificate of a departed employee or a stolen key stays valid until its expiry date.

Revocation is not expiry

A certificate lives for months or years. If a key leaks or a person leaves in the meantime, the certificate has to be invalidated at once. That is revocation, and CRL and OCSP are how its state is checked.

Revocation matters more in mTLS because client certificates are often attached to machines rather than people and are used for a long time. Without a check, a stolen key keeps working until the expiry date.

Reading the address from the certificate

The CRL address sits in the CRL Distribution Points extension (2.5.29.31) as a URI. The OCSP responder address is the id-ad-ocsp entry in Authority Information Access (1.3.6.1.5.5.7.1.1), which also carries the caIssuers address used to fetch the issuing CA certificate.

ExtensionOIDValue
CRL Distribution Points2.5.29.31CRL file URI (http, ldap and so on)
Authority Information Access1.3.6.1.5.5.7.1.1id-ad-ocsp and id-ad-caIssuers URIs
Freshest CRL2.5.29.46delta CRL URI

This page parses both extensions, shows them on the certificate card and lets you copy the URIs alone. When neither is present it leaves a note that there is no revocation path.

Setting it in a proxy

Nginx takes a CRL file path in ssl_crl and OCSP in ssl_ocsp with ssl_ocsp_responder. Envoy puts a file or inline bytes in validation_context.crl and sets the stapling requirement with ocsp_policy. HAProxy reads a CRL from crl-file on the bind line.

Stapling and freshness

OCSP stapling has the server fetch the response in advance and attach it to the handshake. The client does not call the responder, which cuts latency and keeps the responder address out of sight. Nginx controls it with ssl_stapling and ssl_stapling_verify, Envoy with ocsp_policy.

Freshness is the catch. A stale stapled response can be refused by the client, and a failed refresh can break connections. Revocation is less about switching it on than about designing the refresh and the failure alert.

This page never queries OCSP or a CRL. It reads the addresses and compares them with your configuration; the real state is for the proxy or a monitor to check.

Questions

Which is better, CRL or OCSP?

It depends. A CRL checks many certificates from one file but lags by its refresh interval. OCSP is close to real time but depends on the responder and adds a round trip. Many environments use a CRL as the base and add OCSP stapling.

What if the certificate carries no CRL address?

Ask the issuing CA for a certificate that includes a CRL distribution point. Without an address revocation cannot be automated and only a manual process remains.

Does a dead OCSP responder refuse every connection?

That depends on the setting. A strict mode refuses when no response arrives; a soft fail lets it through for availability. Either way, decide and document the policy.

Paste a certificate and the page extracts its CRL distribution point and OCSP address.

Open the tool

This article follows RFC 5280 (X.509), RFC 8446 (TLS 1.3), RFC 5246 (TLS 1.2), RFC 6125 (host name verification), RFC 6960 (OCSP), the CRL distribution points of RFC 5280 4.2.1.13, the SPIFFE ID specification and the Nginx, Envoy and HAProxy documentation. Every example certificate is synthetic, made for this site, and uses only the reserved example.com and example.net domains.