SetNativeOCSPRequestPKCS11

Security and signatures

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

Description

Configures a hardware token key, accessed through a PKCS#11 client, as the credential that signs native OCSP requests during online verification.

The chain parameter lists the CA certificates (DER) that are sent along with the signed requests.

Syntax

Delphi

Function TPDFlibSignatureVerifier.SetNativeOCSPRequestPKCS11(Client: TPDFlibExternalSigningKey;
  Const Chain: Array Of AnsiString; Out ErrorText: WideString): Boolean;

Parameters

ClientExternal signing key that drives the PKCS#11 token; the client must outlive this use
ChainCA certificates in DER encoding sent with the signed requests
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 PKCS#11 client could not provide a usable key; ErrorText describes the cause

Remarks

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

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

See also

NativeOCSPSignedRequests, NativeOCSPRevocation, TPDFlibSignatureVerifier