Locates the signing key on a PKCS#11 (Cryptoki) module — a hardware security module, USB token, or smartcard accessed through a vendor driver.
Used when KeySource is Pkcs11. Works on any platform the vendor module supports.
from nutrient_sdk import Pkcs11OptionsConstruction
Pkcs11Options()Creates a new Pkcs11Options instance with default settings.
Properties
key_label
@propertydef key_label(self) -> str
@key_label.setterdef key_label(self, value: str) -> NoneThe label of the signing key to use. When empty, the first signing-capable key is used.
Type: str
module_path
@propertydef module_path(self) -> str
@module_path.setterdef module_path(self, value: str) -> NoneThe file path of the vendor PKCS#11 module (for example opensc-pkcs11.dll).
Type: str
pin
@propertydef pin(self) -> str
@pin.setterdef pin(self, value: str) -> NoneThe user PIN used to log in to the token.
Type: str
token_label
@propertydef token_label(self) -> str
@token_label.setterdef token_label(self, value: str) -> NoneThe label of the token to use. When empty, the first token present is used.
Type: str