Online Certificate Status Protocol (OCSP): What It Is
The Online Certificate Status Protocol (OCSP) is an internet protocol that lets software ask a certificate authority whether a digital certificate has been revoked. The reply comes back as a live certificate status, so a relying party can decide whether to trust the certificate right away. OCSP is one part of the wider system of certificate revocation checks that keep secure connections honest.
- OCSP answers one question on demand: is this certificate still valid or has it been revoked?
- The protocol returns a signed status response rather than the authority's whole revocation list.
- A responder, run by the certificate authority or a delegated server, signs each OCSP reply.
- The client checks the signature and the timestamp before it trusts the status.
- A failed OCSP check leaves the software to decide between blocking the connection and allowing it.
What OCSP does in plain terms
When a browser or another client meets a certificate, it needs to know whether the certificate is still trusted. The Online Certificate Status Protocol gives the client a direct way to ask that question over the network. The answer is a small signed message naming the certificate and stating whether it is good, revoked, or unknown.
OCSP is a request and response protocol, and its messages travel inside ordinary web traffic. A client sends a request that identifies one certificate by its serial number and issuer. The responder returns a short status, which keeps the exchange lighter than downloading a full revocation list.
Certificate status checks matter because a certificate can be cancelled before its expiry date. A key may be compromised, or a name may change hands. OCSP lets the relying party learn about that cancellation during the connection instead of waiting for the certificate to lapse.
How an OCSP request is built
An OCSP request names the certificate under question in a precise way. It carries the serial number of the certificate and a hash of the issuer's name and key, so the responder knows exactly which certificate is meant. Software builds this request from the certificate it already holds.
The request can be sent to the responder published inside the certificate itself. That address is written into an extension of the certificate, so the client does not have to guess where to ask. Some implementations add a nonce, which is a random value, to tie a reply to one request.
A client may also send several requests together when it holds a certificate chain. Bundling the requests cuts the number of network trips for the whole chain. The responder answers each entry on its own, so one bad certificate does not hide the status of the rest.
Reading the OCSP response
The Online Certificate Status Protocol response carries a status for each certificate in the request. The values a client acts on are good, revoked, and unknown. A good status means the certificate is not revoked, a revoked status means it is cancelled, and unknown means the responder has no record of it.
Each response is signed, and the client verifies that signature before trusting the status. The signature proves that the reply came from the certificate authority or a responder it authorized. The client also checks the time stamp, because an old reply says little about the present state.
The status of the responder itself appears in the response, separate from the status of the certificate. If the responder cannot answer, the response records an error instead of a verdict. A client treats that error differently from a revoked status, and the difference protects against false alarms.
| Status | Meaning for the client |
|---|---|
| Good | The certificate is not revoked according to the responder |
| Revoked | The certificate has been cancelled and should not be trusted |
| Unknown | The responder has no record of this certificate |
| Try later | The responder is busy or cannot reply now |
The responder and the certificate authority
The certificate authority that issued a certificate owns its revocation record. That authority can run an OCSP responder itself or delegate the task to another server. The delegated server holds a special certificate that lets it sign status replies on the authority's behalf.
A responder signs each reply with a key tied to its role, and the client checks that link. The client needs the responder's signing certificate, which may be delivered with the reply or fetched separately. A reply that lacks a valid chain is not trusted, even when its status says good.
The authority keeps the responder supplied with current revocation data. When a certificate is cancelled, the revocation entry must reach the responder before clients can see the change. The certificate renewal and revocation document that governs this is the authority's own responsibility, not the client's.
OCSP compared with certificate revocation lists
A certificate revocation list is a signed file that names every revoked certificate from one authority. OCSP asks about a single certificate and gets a short answer. The two approaches solve the same problem with different costs and different failure modes.
A revocation list can be large, and a client may download it in full to check one entry. That cost grows with the size of the authority's list. OCSP returns only the status of the certificate in hand, which suits clients that check many certificates from many authorities.
A list works offline once downloaded, while OCSP needs a live connection to a responder. That dependence on the network is the price of a fresh answer. The two methods are often used together, and a certificate can name both an OCSP address and a list address.
- A revocation list is a full snapshot of cancelled certificates from one authority
- OCSP answers about a single certificate on demand
- A list can be cached and used offline
- OCSP gives a current status but needs a working connection
- Certificates can publish both a list address and an OCSP address
Limits and risks of online status checks
An OCSP check can fail when the responder is unreachable or slow. Software then faces a choice between blocking a connection it cannot verify and allowing one it cannot confirm. Some clients treat a failed check as a reason to stop, and others treat it as a warning.
Status requests also reveal which sites a user visits to the responder. That privacy cost is real, so some clients send requests through a proxy or skip the check for certain certificates. Designers weigh freshness against the exposure that each request creates.
A revoked certificate is a security signal, and ignoring it can expose a user to a forged site. OCSP tells a client that a certificate was cancelled, but the client decides how to act. The protocol reports status and does not enforce policy by itself.
Why OCSP matters at an inspection station
A smog inspection station sends test results to an authority over secure connections, and those connections rely on certificates. Each certificate carries a status that OCSP can confirm at the moment of use. A revoked certificate in that chain means the link should not be trusted.
The station's network equipment, browser, and test software each handle certificate status in their own way. A responder outage can stall a submission even when the station's own equipment is fine. Technicians who know the protocol can tell a network certificate problem apart from a failed test.
Network and software settings belong to the station's IT support, not to the inspection technician. A technician who sees a certificate warning should record it and hand it to that support. Tinkering with trust settings on a test computer can break the record keeping the station depends on.
Checking a certificate status yourself
You can inspect a certificate status without special software by using a browser's built-in tools. Open the connection details of a secure site and read the certificate information. The status of the certificate may appear there, depending on the browser.
A command line tool can send an OCSP request and print the reply. The tool needs the certificate and the issuer information to build the request. The printed response shows the status, the responder's signature, and the time of the reply.
Read the time stamp and the responder chain before you believe a status. A good status from a responder you cannot verify proves nothing. When a certificate reports revoked, stop and treat the connection as untrusted until an administrator confirms it.
Questions about OCSP certificate status
What is online certificate status?
Online certificate status is the live answer to whether a digital certificate has been revoked. The Online Certificate Status Protocol delivers that answer over the network, so a client does not have to download a full list. The status reflects the authority's record at the time of the reply.
What is the Online Certificate Status Protocol?
The Online Certificate Status Protocol is a request and response protocol for checking one certificate at a time. A client asks a responder, and the responder returns a signed status such as good, revoked, or unknown. The client verifies the signature before it trusts the answer.
What is OCSP and how does it work?
OCSP is the short name for the Online Certificate Status Protocol, and it works by asking a responder about a named certificate. The responder signs a short reply, and the client checks that reply against the responder's certificate. The client then decides whether to trust the connection.
What happens if an OCSP check fails?
A failed OCSP check leaves the client without a confirmed status for the certificate. Some software blocks the connection, and other software warns and continues. The result depends on the client's settings, so an administrator should review any repeated failure.
How is OCSP different from a certificate revocation list?
OCSP asks about a single certificate and returns a short status, while a revocation list is a full file of cancelled certificates. The list can be cached for offline use, and OCSP gives a fresher answer that needs a live connection. Certificates can point to both methods.
Is OCSP needed for a smog station connection?
OCSP checks support the secure links a smog station uses to submit test results. The exact requirement depends on the station's software and the authority it reports to. A technician should report certificate errors to IT support rather than change trust settings.
Read next
-
How to find out if my vehicle needs an emissions test
-
How to Download an ISTQB Certificate
-
OBD2 scanners
-
Monro Muffler Emissions Test
-
How to tell a low carbon monoxide detector battery from an alarm
-
Flex pipe repair cost
-
Maryland state inspection near me within 1 mi
-
What a red seal certificate is in South Africa
-
What Is an Exhaust Gas Recirculation System
-
What a visa screening certificate is