The 10:03 problem: a perfect nonce, a stale answer

At 10:00 a certificate authority flips a certificate to revoked. The OCSP responder's upstream feed does not ingest the change until 10:05. At 10:03 a client sends a request carrying a fresh 32-octet nonce. The responder returns the same 32 octets, a valid signature, and the word good. Every check on the wire passes. The answer is still wrong.

That is the boundary RFC 9654 draws — and the boundary it does not. The OCSP Nonce Extension gives a client hard cryptographic evidence that a response is the answer to this request and not an older copy of some other answer. It says nothing about whether the facts inside that answer were current when the responder signed them. A matching nonce is a receipt for the envelope. It is not a receipt for the news.

Confusing the two is how a monitoring panel turns green while a revoked certificate keeps terminating TLS.

What RFC 9654 actually proves

The specification is unusually disciplined about its own claim, which is why it is so easy to over-read. A modern requester must generate a nonce of at least 32 octets from a cryptographically strong pseudorandom generator. The responder reflects it. When the requester's exact value comes back, the client can distinguish the server's answer to this request from a stale response bound to a different value. That is genuine freshness, and it defeats a real replay technique.

It is also one link in a chain. The match does not establish that the responder ingested the newest revocation data, that its signer holds delegated authority, that the CertID names the certificate the application actually cares about, that the signed time fields fall inside the relying party's policy window, or that the connection should be admitted at all. Each of those is a separate proof with a separate failure mode. A defensible receipt keeps them separate too: request and response bytes, nonce generation and equality, signer authority, certificate identifier, signed status interval, observable source-feed age, validator policy, and the final application action.

One random value, two message locations

The requester carries the nonce in requestExtensions. The responder returns it in responseExtensions. Both use the object identifier 1.3.6.1.5.5.7.48.1.2, and the extension's extnValue contains an encoded Nonce OCTET STRING. RFC 9654's worked example makes the nesting visible: an outer OCTET STRING encapsulates the inner 32-octet value.

This detail matters because "present" is weaker than "equal". A parser can recognise the extension while extracting the wrong layer, accepting a truncated value, or comparing a textual rendering rather than the exact octets. The durable receipt is the canonical request bytes and hash, the response bytes and hash, the decoded extension locations, the lengths, and the exact equality result.

Length rules are not interoperability rules

The ASN.1 type admits one to 128 octets. A requester implementing RFC 9654 must use at least 32. A supporting responder must accept 16 through 32, may omit reflection for one through 15 or 33 through 128, and must reject zero or more than 128 with malformedRequest. A 128-octet value can therefore be syntactically permitted without being guaranteed to come back in a response.

RFC 8954 had capped the value at 32 octets, so older conforming implementations cannot be assumed to process larger ones. The new range serves environments whose cryptographic construction produces longer values. It is not an instruction to maximise length in every deployment — and a longer nonce is not a stronger control if the responder quietly declines to reflect it.

Randomness is part of the proof

Length alone does not make a nonce useful. RFC 9654 requires a cryptographically strong pseudorandom number generator and points to RFC 4086. A predictable value lets an adversary prefetch a response carrying the value a client will later choose. A tiny space can simply be enumerated. In either case equality remains true while the anti-replay meaning has been destroyed — the check passes and the property is gone.

So the evidence has to begin before the request is sent. Record the generator class and health, the generation timestamp, the requested length, and a privacy-safe hash or protected copy of the value. Track reuse across requests and across instances. "32 bytes" is a format observation; "fresh and unpredictable for this request" is the security property. A generic success counter cannot tell them apart, because it cannot distinguish a new value from a constant, a timestamp, a repeated process seed, or an accidentally shared buffer.

Response freshness is not status currency

RFC 9654 says a reflected nonce ensures the response is the most recent response from the server and not an old copy. Read that sentence with its subject intact: it is about the response obtained from the responder for this request. It does not attest to the age or completeness of every input that responder used.

RFC 6960 exposes the other dimensions. producedAt is when the responder signed the response. thisUpdate is when the indicated status was known to be correct. nextUpdate is when newer status information will be available. The response also carries a CertID, a status, optional revocation information, a responder identity, and a signature.

These fields form a conjunctive decision, not a menu of substitutes. A relying party must verify the signature and the signer's authority, match the certificate identifier, interpret good, revoked or unknown, apply the relevant time policy, and then continue the certificate-path and application checks. A nonce does not sign itself, appoint the signer, or select the target certificate.

The upstream boundary is where the money is. Return to the 10:03 responder: it can mint a brand-new, nonce-bound, correctly signed response from the state it currently holds. The exchange is fresh; the fact is stale. RFC 9654 never claims otherwise, and operators should not make that missing observation disappear behind a green cell.

The optional nonce and the replay window it leaves open

The nonce mechanism is optional in the wider OCSP ecosystem. RFC 5019 is built for high-volume environments that benefit from pre-produced responses and caching, and it says a responder may omit the nonce even when a client sent one. Unless a client knows the server supports nonces, absence alone should not force rejection; the client falls back to signed time-based freshness.

That fallback carries a residual replay surface. RFC 9654 explains that an on-path adversary can intercept the request and return an earlier server response without the nonce. A short interval between thisUpdate and nextUpdate limits how much of that window is useful. It is not the same state as an exact match, a mismatched value, or a malformed request.

Operations should therefore report at least four outcomes: matched, absent under an allowed fallback, mismatched, and malformed or unsupported — each carrying the subsequent validation result. Collapsing them all into "OCSP success" hides control degradation. Treating every absence as a universal protocol failure ignores the deployed profile.

The green cell that swallowed the chain

A replayable decision starts with target selection: certificate fingerprint and serial, issuer-name and issuer-key hashes, and the expected responder. It then records request bytes, nonce generation, nonce length, and transport destination. The response record preserves exact bytes, response status, responder identifier, signer chain, delegated authority, and signature result.

The binding layer stores whether the response contained a nonce and whether its exact decoded value matched. The status layer stores CertID, producedAt, thisUpdate, nextUpdate, the good/revoked/unknown verdict, and any revocation details. Where the responder exposes upstream ingestion telemetry, retain the source snapshot or feed watermark and its age.

The local-decision layer adds receipt time, clock source and uncertainty, validator build, policy version, tolerance, and reason code. The application layer records certificate-path and identity results, the final admission or rejection, and the session action that followed.

This is Lu Heng's reality-layers discipline applied to certificate status. Random generation, request delivery, response binding, authenticated assertion, source-data currency, local validation, and business action are connected realities. None of them can impersonate the next.

Minimum rules, visible local responsibility

RFC 9654 is a clean example of Minimum Initial Specification. It standardises what must be shared — encoding, range, modern minimum, responder acceptance, rejection, strong randomness — and leaves deployment trade-offs and application risk where they belong.

A responder operator owns nonce support, capacity, and source-data ingestion. A client team owns generation, comparison, and fallback. A PKI team owns signer delegation and status publication. An application owner decides whether certificate evidence is sufficient for a transaction. Those boundaries are not fragmentation; they are accountability with names attached.

Running-code primacy completes the test. The specification tells us what a conforming match means. Packet captures, exact decodes, build provenance, feed telemetry, and admission logs tell us whether a particular system actually built the promised chain.

Sources