AddTrustAnchorDER

Security and signatures

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

Description

Adds a DER-encoded X.509 certificate to the verifier's in-memory set of custom trust anchors.

The bytes are decoded with the platform certificate API before they are accepted, so malformed input is rejected instead of breaking later chain builds. A certificate that is already in the set is not added a second time.

While the set is nonempty, signer and timestamp chains are built with an exclusive trust engine that uses these anchors for CA roots and explicit certificate pins without consulting the Windows Root or TrustedPeople stores.

Syntax

Delphi

Function TPDFlibSignatureVerifier.AddTrustAnchorDER(Const CertificateDER: AnsiString): Boolean;

Parameters

CertificateDERDER-encoded X.509 certificate bytes

Return values

TrueThe certificate decoded successfully and is in the set, either newly added or already present
FalseThe input is empty or the bytes do not decode as an X.509 certificate

Remarks

Adding a new anchor releases the cached exclusive trust engine, so the next chain verification rebuilds it from the updated set.

Trust-anchor membership does not bypass certificate validity, key usage, signature, or requested revocation checks.

See also

TPDFlibSignatureVerifier, TPDFlibEUTSLTrustSource, NativeCRLRevocation