SetNativeOCSPRequestPFX

Security and signatures

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

Description

Configures a PFX (PKCS#12) bundle as the credential that signs native OCSP requests during online verification.

The credential is independent of the document trust anchors; local request-signing failures are reported separately from the overall chain result through the chain report's OCSP request signing error.

On Windows the call returns False with an explanatory message, because request signing applies to the native non-Windows OCSP backend.

Syntax

Delphi

Function TPDFlibSignatureVerifier.SetNativeOCSPRequestPFX(Const Data, Password: AnsiString;
  Out ErrorText: WideString): Boolean;

Parameters

DataPFX (PKCS#12) file bytes containing the signing key and certificate
PasswordPassword that decrypts the PFX bundle
ErrorTextReceives a plain-text reason on failure; empty on success

Return values

TrueThe identity was opened and installed as the OCSP request-signing credential
FalseThe target is Windows, the crypto provider is unavailable, or the PFX could not be opened with the given password; ErrorText describes the cause

Remarks

A successful call replaces and frees any previously configured request-signing identity.

See also

NativeOCSPSignedRequests, NativeOCSPRevocation, TPDFlibSignatureVerifier