AddLOTLSigningCertificateDER
Security and signatures
Requires the Enterprise edition — declared in the Enterprise unit PDFlibEUTSL, which other editions do not include
Description
Pins one DER-encoded X.509 certificate as an independently trusted signing certificate for EU list-of-the-lists verification. The pinned set is the only trust root for LoadLOTLFromString, LoadLOTLFromFile and LoadLOTLFromURL: the certificate a LOTL presents in its XML KeyInfo must match a pinned certificate byte for byte, so a self-declared signer cannot establish its own trust.
Syntax
Delphi
Function TPDFlibEUTSLTrustSource.AddLOTLSigningCertificateDER(Const CertificateDER: AnsiString): Boolean;Parameters
| CertificateDER | One complete DER-encoded certificate to pin |
|---|
Return values
| True | The certificate is pinned, or an identical certificate was already pinned |
|---|---|
| False | The value is empty or does not decode as a certificate, or the pin limit is reached; GetLastError describes the failure |
Remarks
The source keeps at most 32 pinned certificates; adding beyond that limit fails with an error instead of replacing older entries.
Passing a certificate that is already pinned succeeds without adding a second copy and leaves the configuration unchanged.
A successful or duplicate call clears the recorded error; every accepted change advances the source revision.