Native OCSP revocation
Security and signatures
Requires the Enterprise edition — forms part of the Enterprise signature verification and revocation surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)
Description
The native non-Windows signer-chain verifier consumes cached or fetched issuer-signed and authorised delegated OCSP responses through TPDFlibSignatureVerifier.VerifySignerCertificateChainEx and VerifySignerCertificateChainExByName
Explicit-anchor base trust is established before considering revocation evidence; embedded certificates never become trust anchors merely by being present
See independent responder OCSP status for cached dependency resolution, bounded retrieval and cycle rejection
Validation
Successful basic responses require a valid response signature and an authorised issuer or delegated responder path at the requested verification time
A delegated responder must be directly issued and cryptographically signed by the selected certificate's actual issuer, include OCSPSigning EKU and permit digital signatures when keyUsage is present
Its own revocation state requires independent authenticated OCSP, an applicable fresh direct or indirect complete CRL, or a single noncritical id-pkix-ocsp-nocheck extension containing DER NULL
Valid supplied OCSP or CRL evidence establishing responder revocation makes the response unusable even when nocheck is present; this does not by itself establish revocation of the document signer
Responder certificates can be embedded in the response or supplied as untrusted DSS certificates; they never become trust anchors
CertID matching uses the response's digest algorithm and compares the complete issuer-name hash, issuer-key hash and serial number against the selected certificate and issuer
Both responder-name and responder-key identifiers are supported through the native provider; unsupported digest algorithms cannot establish success
Version 1 responses are supported; unsupported versions and any critical response or single-response extensions are rejected
thisUpdate must be no later than producedAt and the requested time; producedAt must be no later than the requested time, and nextUpdate must exist, be no earlier than thisUpdate and cover the requested time
Revocation time must be no later than thisUpdate; this route applies no clock-skew allowance
Coverage and conflicts
Each non-anchor certificate requires a valid good OCSP or CRL result; independently validated results from both evidence types can combine into complete chain coverage
A valid revoked status takes priority over good statuses in another response or another entry, regardless of ordering
Authenticated OCSP revocation takes priority over good CRLs, and authenticated CRL revocation takes priority over good OCSP
CRL checking continues across unresolved non-anchor certificates so a missing leaf CRL cannot hide an applicable revoked intermediate CA
Missing, stale, invalid, unknown or unusable delegated evidence contributes no good coverage; another valid source can cover that certificate, while any authenticated revoked status retains priority
Reports
The existing evidence reader merges the selected VRI material with unique global DSS material; UsedVRI identifies the matching VRI without restricting validation to that subset
DSSOCSPCount remains document inventory; DSSOCSPValidatedCount counts only cached document responses containing at least one authenticated, applicable and fresh entry
Fetched responses affect overall OCSP status and certificate coverage without increasing either DSS count; they are not written to the PDF or retained for later verification calls
OCSPStatus reports not-checked, good, revoked, unknown or malformed; an authenticated unknown response is counted but does not establish good status
OCSPRevocationReason records an available validated revoked reason, and OCSPFreshnessSeconds is the largest accepted thisUpdate age relative to the requested verification time
OCSPNativeError is 0 for complete good coverage, 23 for authenticated revocation and 50 for unresolved or unsupported evidence in this scoped route
srmNone skips OCSP checks; srmOnline uses cached and mixed coverage first, then retrieves OCSP or CRL evidence only for certificates that still lack good coverage
Downloaded CRLs also allow delegated responses to be reconsidered when their responder's own CRL was initially unavailable
Online requests and time
OCSP URLs come from the trusted certificate's Authority Information Access extension; HTTP(S) POST carries application/ocsp-request and both POST and GET accept application/ocsp-response
Requests contain one exact SHA-1 CertID and support a configurable nonce policy; requests remain unsigned unless an explicit PFX request identity is configured, and preproduced responses remain subject to signature, authorisation, exact CertID and mandatory nextUpdate checks
One URL can serve multiple certificates; duplicate suppression uses the evidence protocol, method, exact URL and complete request identity rather than the URL alone
OCSP GET and CRL GET can share a URL with different Accept headers; their evidence protocols remain distinct during retrieval and validation
HTTP method selection
Verifier.NativeOCSPHTTPMethod := nohmPreferGET;
NativeOCSPHTTPMethod uses TPDFlibNativeOCSPHTTPMethod and persists when opening another document or clearing trust anchors; it applies to native non-Windows signer-chain and TSA verification
| nohmPreferPOST | Default: prefer POST and permit GET fallback when POST is rejected with HTTP 405 or 501 |
|---|---|
| nohmPreferGET | Prefer GET when the complete encoded URL is at most 255 UTF-8 bytes; otherwise start with POST, with method-rejection fallback when feasible |
| nohmPOSTOnly | Use only POST for OCSP, while retaining other applicable CRL evidence |
| nohmGETOnly | Use only GET for OCSP when the constructed URL fits the 8192-character limit; no automatic POST alternative |
GET rejection with HTTP 400, 404, 405, 414 or 501 permits POST fallback in a preference mode; other HTTP failures or unresolved authenticated evidence do not automatically switch methods
GET requests append percent-escaped standard base64 to the responder path, preserve existing query parameters and omit URI fragments; plus, slash and padding characters are escaped
All method attempts share the existing request, time and response budgets; selecting a preference does not reset the budget for a fallback
Unresolved OCSP evidence permits CRL GET fallback; both protocols share eight URL attempts, five seconds per request including redirects, eight MiB per response and a conservative 32 MiB response budget
Failed requests consume their allocated response allowance; only HTTP(S) URLs of at most 8192 characters and OCSP requests of at most 64 KiB are considered
When the caller selects the default current time, verification follows elapsed network time, revalidates base trust when the clock advances and reports the effective verification time
An explicitly supplied UTC verification time remains fixed; a response generated after that instant cannot establish historical status
Recognised OCSP error statuses such as tryLater are unresolved evidence; malformed structures and invalid protocol status values remain distinct
Signature and document timestamps use these evidence checks at their fixed UTC GenerationTime; see Native timestamp verification
Bounds and remaining work
Each evidence list permits at most 1024 entries, each supplied item at most 16 MiB and combined explicit anchors, supplemental certificates, cached evidence and retained downloaded evidence at most 64 MiB
The OCSP checker separately bounds its verified-chain, supplemental certificates, CRLs and response bytes to 64 MiB, each input list and each response's single entries to 1024, and combined document and responder evidence searches to one million work operations
Critical or malformed nocheck extensions remain outside this route
The low-level PLNativeCheckCachedOCSP entry requires an already trusted VerifiedChain and returns per-certificate coverage; PLNativeCheckCachedIssuerOCSP retains its issuer-only contract
PLNativeBuildOCSPRequest constructs a bounded unsigned request; PLNativeCheckOCSPEvidence accepts a cached response prefix for source accounting, and PLNativeVerifyCMSChainWithEvidenceAtTime exposes fixed or following-clock verification
PLNativeBuildOCSPGETURL encodes supplied request bytes within transport bounds; it does not independently establish request syntax or certificate trust
Qualified runtime evidence covers Linux x64 Free Pascal 3.3.1 with OpenSSL 3.5.5; other target hosts and provider versions require qualification