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
| CertificateFile | Name of the file holding the DER-encoded certificate to pin |
|---|
Return values
| True | The file was read and its certificate pinned |
|---|---|
| False | The 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.