OCSP (Online Certificate Status Protocol)
What is OCSP (Online Certificate Status Protocol)?
OCSP (Online Certificate Status Protocol)An HTTP-based protocol that lets a client query a CA's responder in real time to determine whether a specific X.509 certificate is valid, revoked or unknown.
OCSP, defined in RFC 6960 (which obsoleted the original RFC 2560), replaces large, slowly-refreshed CRLs with a real-time lookup. The client sends a request containing the certificate's serial number to the responder URL listed in the certificate's Authority Information Access extension. The responder returns a signed status — good, revoked, or unknown — and the relying party trusts it after validating the responder's signature. A nonce (RFC 8954) can bind request to response and defeat replay.
Plain OCSP has two weaknesses. It leaks browsing activity, because the CA sees which sites a user visits, and clients historically soft-fail: if the responder is slow or offline, browsers proceed anyway, so an attacker who blocks the query renders revocation useless. OCSP stapling — the TLS Certificate Status Request extension (RFC 6066) — fixes this by having the server fetch, cache, and present the signed status in the handshake. The X.509 Must-Staple flag (RFC 7633) then lets a site demand a stapled response, forcing a hard fail.
Momentum has since shifted away from OCSP. Browsers prefer pushed revocation (Chrome CRLSets, Firefox CRLite), and Let's Encrypt stopped issuing Must-Staple certificates on 30 January 2025, removed OCSP URLs on 7 May 2025, and shut down its responders on 6 August 2025, citing privacy and cost.
flowchart LR
A[TLS client] -->|ClientHello: status_request| B[HTTPS server]
B -->|cached stapled status| A
B -.->|periodic fetch| C[CA OCSP responder]
C -->|signed good/revoked/unknown| B
A -->|validate responder signature| D{Status?}
D -->|good| E[Complete handshake]
D -->|revoked| F[Abort connection]● Examples
- 01
A browser issuing an OCSP request to verify the certificate of an online banking site.
- 02
An HTTPS server with OCSP stapling enabled to deliver a fresh signed status during each TLS handshake.
● Frequently asked questions
What is OCSP (Online Certificate Status Protocol)?
An HTTP-based protocol that lets a client query a CA's responder in real time to determine whether a specific X.509 certificate is valid, revoked or unknown. It belongs to the Network Security category of cybersecurity.
What does OCSP (Online Certificate Status Protocol) mean?
An HTTP-based protocol that lets a client query a CA's responder in real time to determine whether a specific X.509 certificate is valid, revoked or unknown.
How do you defend against OCSP (Online Certificate Status Protocol)?
Defences for OCSP (Online Certificate Status Protocol) typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for OCSP (Online Certificate Status Protocol)?
Common alternative names include: Online Certificate Status Protocol, OCSP stapling.