PKCS#11 R2 Slot Initialization

We assume that you already initialized slot 0. For initializing a slot and cryptographic keys generation, you can use p11tool2 or p11cat application. We can create a key pair by using the command below, which will be used in OpenTrust PKI.

PKCS#11 R2

# p11tool2 LoginUser=123456 PubKeyAttr=CKA_MODULUS_BITS=2048,CKA_LABEL="PubKey" '

PrvKeyAttr=CKA_LABEL="PrvKey" GenerateKeyPair=RSA

The user pin, slot number and key label will be used later in this document.