VerifySignerCertificateChainExByName
security and signatures
Requires the Enterprise edition — part of the Enterprise signature verification surface in TPDFlibSignatureVerifier (unit PDFlibEntSignVerify)
Description
Runs the full signer certificate chain validation for the named signature field and selected signer, with a chosen revocation mode and verification time.
The signer certificate is taken from the signature CMS, embedded and DSS or VRI certificates join the chain-building pool, and validation runs at the requested UTC time (0 selects the current UTC time). With custom anchors or a trust source assigned, an exclusive trust engine ends the chain at those anchors instead of the system roots.
On Windows, a chain that uses Ed25519, Ed448, ML-DSA or SM2 is built and checked by the library itself against the configured anchors, because the Windows chain engine cannot verify those algorithms.
TPDFlibSignatureChainReport separates trust status, Windows chain and policy errors, DSS or VRI evidence counts, exact OCSP attribution, revocation reason, freshness, native errors, and the trust source qualification report.
Syntax
Delphi
Function TPDFlibSignatureVerifier.VerifySignerCertificateChainExByName(Const FieldName: WideString; SignerIndex: Integer;
RevocationMode: TPDFlibSignatureRevocationMode; VerificationTime: TDateTime;
Out Report: TPDFlibSignatureChainReport): TPDFlibSignatureVerifierResult;Parameters
| FieldName | Fully qualified name of the signature field |
|---|---|
| SignerIndex | Zero-based CMS signer index within the signature |
| RevocationMode | srmNone validates trust without revocation checks; srmCacheOnly requires applicable DSS or VRI evidence; srmOnline additionally performs bounded network retrieval |
| VerificationTime | UTC verification time; 0 selects the current UTC time |
| Report | Receives the complete chain report |
Return values
| vsValid | The chain is trusted, ends at a configured anchor where applicable, and all requested revocation checks succeeded |
|---|---|
| vsInvalid | The chain failed or revocation was confirmed, with the classification available in TrustStatus |
| vsUnknown | The signer certificate cannot be decoded, the anchors of an assigned trust source cannot be obtained, or base trust succeeded but revocation stays unresolved |
Remarks
Confirmed revocation yields vsInvalid with stsRevoked and the revocation reason when a CRL entry or OCSP response establishes it; unresolved revocation yields vsUnknown with stsRevocationUnknown.
When a trust source is assigned and the chain is valid, its chain evaluation fills QualificationReport; an evaluation that declines marks the report sqsNotApplicable without weakening the chain result.
DSS and VRI OCSP evidence is accepted only when its responder signature, issuer or delegated responder usage, CertID, status, and freshness match the selected certificate.
See also
TPDFlibSignatureVerifier, TPDFlibSignatureVerifierResult, NativeCRLRevocation, NativeOCSPRevocation, TPDFlibEUTSLTrustSource