OCSP

Online Certificate Status Protocol: how certificate revocation checking works.

What it is

OCSP (Online Certificate Status Protocol) is a protocol used to check the revocation status of X.509 certificates in real-time. Instead of downloading a Certificate Revocation List (CRL), clients can query an OCSP responder to check if a specific certificate is still valid.

When a client connects to a server using TLS, it can send an OCSP request to the certificate's OCSP responder URL (found in the certificate's Authority Information Access extension). The responder returns a signed response indicating whether the certificate is "good", "revoked", or "unknown".

Why it matters

OCSP provides several advantages over CRLs:

However, OCSP has privacy concerns (the OCSP responder knows which sites you're visiting) and performance issues (additional network round-trip). OCSP Stapling addresses these concerns by having the server fetch and cache OCSP responses.

In practice

Best practices for OCSP:

Further reading


OCSP responder URLs live in a certificate's extensions — see them by pasting a certificate into the certificate decoder.

Related guides