AddLOTLSigningCertificateFromFile

Security and signatures

Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include

Description

Reads a certificate file and pins its bytes as a LOTL signing certificate. The file must contain the raw DER encoding of exactly one X.509 certificate; the call is the file-loading form of AddLOTLSigningCertificateDER and shares its deduplication, limit and revision behavior.

Syntax

Delphi

Function TPDFlibEUTSLTrustSource.AddLOTLSigningCertificateFromFile(Const CertificateFile: WideString): Boolean;

Parameters

CertificateFileName of the file holding the DER-encoded certificate to pin

Return values

TrueThe file was read and its certificate pinned
FalseThe file cannot be read or exceeds the 4 MiB read bound; GetLastError describes the failure

Remarks

Files larger than 4 MiB are rejected before any parsing, which keeps the pin step bounded independently of MaxXMLBytes.

See also

TPDFlibEUTSLTrustSource, TPDFlibSignatureVerifier