Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 7 · Reading 4 of 6

Investigating certificate revocation with CRL and OCSP

Security+ SY0-801 · Objectives 1.3

A service owner discovers that a private key was copied last week. The portal certificate shows months of remaining validity. A calendar can tell a client when a certificate expires. How can the client learn that the issuer withdrew trust early?

When a valid signature is insufficient

A service exposes its private key on Monday. Its certificate still has six months until expiration and its issuer signature still verifies. Revocation communicates that relying parties should cease trusting the certificate early. Issue a replacement with a new key, revoke the compromised certificate, deploy the replacement and check what clients actually accept. Renewing a certificate around the exposed key leaves the key compromise unresolved.

A certificate revocation list (CRL) is a signed publication identifying revoked certificate serial numbers within the list’s scope. A client locates the distribution point, verifies the issuer or authorized signer, checks scope and freshness, and looks up the issuer-specific serial. Caching supports offline intervals but creates a delay between revocation and client awareness. Large lists impose distribution costs. A delta CRL must be combined with the correct base list.

Figure 1. Responding to an exposed private key
  1. Monday: key exposedThe certificate still verifies and has six months left.
  2. Issue a replacement with a new keyRenewing around the old key leaves the compromise in place.
  3. Revoke the compromised certificatePublished through CRL and OCSP.
  4. Deploy the replacementOn every service instance.
  5. Check what clients acceptTest representative clients, including one with a stale status response.

Interpret a status response

The Online Certificate Status Protocol (OCSP) asks about a particular certificate. A responder returns a signed good, revoked or unknown status. Verify its authority to respond, signature, certificate identifier and timing. ThisUpdate indicates the time the status was known to be correct. NextUpdate, when present, describes when newer information should be available. ProducedAt records when the response was signed. A good response alone does not establish hostname match, permitted usage or a valid chain.

OCSP stapling lets the service present a cached signed response during the handshake. This can reduce client latency and disclosure of browsing activity to the responder. The service must refresh its staple. Decide how a client handles uncertainty in light of both impersonation and outage risk. Failing closed (rejecting the connection) can interrupt service during a responder outage. Failing open (accepting it anyway) can extend exposure to a revoked key. Test actual client behavior with a stale response and with an unreachable responder as separate cases.

OCSP specification

Figure 2. Three ways a client learns about revocation
CRLOCSPOCSP stapling
What the client getsA signed list of revoked serialsA signed status for one certificateThe server’s cached OCSP response, in the handshake
FreshnessDelayed by caching and publication intervalNear real timeAs fresh as the server’s last refresh
PrivacyResponder does not see each site visitedResponder sees which certificate was checkedClient contacts no responder
Main costLarge lists to distributeExtra lookup, responder outagesServer must keep the staple current

If status cannot be obtained, failing closed risks an outage and failing open risks trusting a revoked key. Test both cases.

A morning at the service desk

At 09:00 one managed client rejects the certificate while a different client connects. Ask which status source each one used, when it was refreshed and what happened when that source was unavailable. Record the issuer and serial before comparing responses. Serial numbers are meaningful in the context of the issuing authority. Also check whether the two clients reached different service instances, one of which still serves an older chain.

A useful incident update states what the issuer has done, what the server is presenting and what representative clients actually accepted. It gives the key custodian a final question to answer. How did someone obtain either the key itself or permission to use it? The next reading, Designing key custody with HSM, TPM and KMS, examines where keys should live.

Responder freshness clock

Inspect the three records, then use the evidence to answer the question.

1. Certificate

Leaf serial 62 expires on June 30.

2. Cached reply

Signed good reply for serial 62 has nextUpdate June 10.

3. Policy clock

Verifier time is June 12 and policy requires fresh status.

Apply the reading

What would a fresh good OCSP response still leave to verify?

Compare your reasoning

Check the certificate chain, identity, key usage and validity interval as well as the responder's authority.