Skip to main content
Perform the following tasks to test OpenSSL engine:
  1. Set FXPKCS11 environment variables.
  2. 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:
1
In a terminal, run the following command to use pkcs11-tool to create a new key pair on the Vectera Plus:
Shell
2
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:
Shell
The command creates the following keys, which the next section uses in the test OpenSSL commands:
  • 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:
1
In a terminal, run the following command to use OpenSSL to generate a certificate from the key pair on the Vectera Plus:
Shell
2
Enter the password of the identity configured in the fxpkcs11.cfg file when prompted for the User PIN.

Push the certificate

Perform the following steps to push the certificate to the Vectera Plus with pkcs11-tool:
1
In a terminal, run the following command to use pkcs11-tool to push the certificate to the Vectera Plus:
Shell
2
Enter the password of the identity configured in the fxpkcs11.cfg file when prompted for the User PIN.
If the command succeeds, the certificate displays in the output, as shown in the following example:
Shell