- Set FXPKCS11 environment variables.
- Explore some OpenSSL Engine examples.
Set environment variables
In a terminal, run the following sequence of commands to set the required FXPKCS11 environment variables:Shell
Create a key pair
Perform the following steps to create a key pair on the Vectera Plus by using pkcs11-tool:In a terminal, run the following command to use pkcs11-tool to create a new key pair on the Vectera Plus:
Shell
Enter the password of the identity configured in the
fxpkcs11.cfg file when prompted for the User PIN.If the command succeeds, the keys display in the output, as shown in the following example:The command creates the following keys, which the next section uses in the test OpenSSL commands:
Shell
- A private RSA 2048 key with asymmetric sign and verify usage
- A public RSA 2048 key with verify usage.
Generate a certificate
Perform the following steps to generate a certificate from the key pair:In a terminal, run the following command to use OpenSSL to generate a certificate from the key pair on the Vectera Plus:
Shell
Push the certificate
Perform the following steps to push the certificate to the Vectera Plus with pkcs11-tool:In a terminal, run the following command to use pkcs11-tool to push the certificate to the Vectera Plus:
Shell

