Native timestamp verification

Security and signatures

Requires the Enterprise edition — part of the Enterprise signature verification and revocation surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)

Description

Native timestamp verification checks token integrity and message imprint, requires an ESS SigningCertificate or SigningCertificateV2 binding to the actual TSA certificate, then applies trust and revocation checks at the token's GenerationTime. Read it when a timestamp validates cryptographically but must also be tied to its TSA certificate and checked for revocation at the asserted time.

Timestamp selection

The native non-Windows backend supports the document and signature timestamp methods of TPDFlibSignatureVerifier, including their index, name and Ex variants

Document timestamps bind their token to the actual PDF ByteRange bytes; signature timestamps bind their token to the selected CMS signatureValue

Token integrity, message imprint, critical timeStamping-only EKU, optional TSA name, expected policy and expected nonce are checked before certificate trust or revocation retrieval

ESS certificate binding

A token must contain a SigningCertificate or SigningCertificateV2 signed attribute that identifies its actual TSA signing certificate, as required by RFC 3161 and RFC 5816

The native verifier checks the certificate hash, optional issuer and serial, and any additional certificate identifiers against the trusted leaf-to-root chain; both attributes must validate when both are present

Absent bindings, duplicate attributes, multiple values, malformed sequences, empty identifier lists and incorrect leaf or CA identifiers are rejected

ESS validation occurs after base trust is established and before any revocation network request; a failed binding clears TokenSignatureValid and returns vsInvalid even when the CMS signature bytes verify

A binding failure can coexist with ChainResult = vsValid and TrustStatus = stsTrusted because base certificate trust and token validity are reported separately

Missing optional OpenSSL ESS controls return vsUnknown with NativeError 50; ordinary native CMS signing does not require those controls

Trust and revocation

Manual anchors and trust-source anchors establish trust; DSS or VRI certificates are supplemental candidates and never become implicit anchors

Trust-source anchor selection, certificate validity and revocation checks use the token's UTC GenerationTime

srmNoneValidate the token, ESS binding and base certificate chain without checking revocation
srmCacheOnlyRequire applicable authenticated DSS or VRI CRL/OCSP coverage for every non-anchor TSA chain certificate
srmOnlineUse cached evidence first, then bounded HTTP(S) OCSP and CRL retrieval to fill missing coverage

NativeOCSPHTTPMethod applies to TSA verification as well as signer-chain verification, with the same preferences, forced methods and method-rejection fallback

Retrieval shares eight attempts, five seconds per request, eight MiB per response and a conservative 32 MiB response budget within one timestamp check

Online retrieval never advances GenerationTime: a newly generated response or CRL that is inapplicable at that historical instant cannot establish status

Downloaded evidence is local to that verification call and is not written to the PDF or retained for later cache-only checks

The selected timestamp token's own signed CMS archival CRL/OCSP attribute also contributes evidence without changing DSS inventory

NativeOCSPNonceMode also controls timestamp OCSP retrieval without advancing GenerationTime or waiving applicable CRL checks

Explicit signed OCSP requests authenticate with a currently valid request identity while timestamp evidence remains tied to GenerationTime

Report results

Complete good coverage returns vsValid, ChainResult = vsValid and TrustStatus = stsTrusted

Authenticated TSA or intermediate revocation returns vsInvalid, ChainResult = vsInvalid, TrustStatus = stsRevoked and NativeError 23; revoked evidence wins over conflicting good evidence

With valid base trust but missing, malformed, stale, future or unsupported revocation evidence, the result and ChainResult are vsUnknown and TrustStatus is stsRevocationUnknown

Untrusted or expired base chains remain invalid and cannot trigger online revocation retrieval

TPDFlibTimeStampVerificationReport includes OCSPRequestSigningError for local request-authentication failures; signer-chain DSS inventory and OCSP summary fields are not added to this timestamp report

Bounds and qualification

ESS inputs permit a token of at most 16 MiB, at most 1024 chain certificates of at most 16 MiB each, and at most 64 MiB for the token and supplied chain together

At most 1024 signed attributes and 1024 certificate identifiers in each ESS attribute are examined; one complete SEQUENCE value is required per attribute

The low-level PLNativeVerifyCMSESSBinding helper requires separately verified CMS integrity and a trusted leaf-to-root chain; it checks their ESS correspondence without independently establishing trust

Revocation retains the direct complete CRL, issuer/delegated OCSP, per-certificate coverage and resource limits documented in Native CRL revocation and Native OCSP revocation

Additional Freshest location profiles remain outside this route

Actual runtime qualification covers Linux x64 FPC 3.3.1 with OpenSSL 3.5.5; other target hosts and provider versions require qualification

Document and signature timestamp verification apply NativeCRLSignerRevocationMode at GenerationTime and expose separate CRL signer checked/good/revoked/unknown counts