Click or drag to resize
Pdf Library for .NET

PdfPkcs11Signer(String, String, String, String, IListByte) Constructor

Creates a signer for a key on a PKCS#11 token, with certificates given by the caller - for a token that holds the key but not its certificate or chain.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntax
public PdfPkcs11Signer(
	string libraryPath,
	string pin,
	string tokenLabel,
	string keyLabel,
	IList<byte[]> certificates
)

Parameters

libraryPath  String
The path of the vendor's PKCS#11 library.
pin  String
The user PIN of the token. Null when the device takes the PIN itself, on its own keypad.
tokenLabel  String
The label of the token. Null or empty when exactly one token is present.
keyLabel  String
The label of the private key. Null or empty when the token holds exactly one private key.
certificates  IListByte
The certificates, each DER-encoded: the signing certificate first, then its issuers. Null to read them from the token.
Exceptions
ExceptionCondition
PdfDocumentExceptionThe library could not be loaded, the token or the key was not found, or the PIN was refused.
See Also