Connect and log in
Perform the following steps to connect and log in to the HSM by using FXCLI:Configure TLS certificates for communication between FXCLI and the HSM by using the tls commands.
Run tls help to access syntax documentation.
Create a new key pair
Perform the following steps to create a new key pair on the Vectera Plus:Assign a PKCS11 label to the key (Vault needs this external data field to be set so that it can find the key):
The number that you specify in the slot flag needs to match the slot number of the private key determined in the previous step. The PKCS11 label value should match the name set for the key pair in the generate command.
FXCLI
Create a managed key in the Vault
This example creates a managed key in the Vault by referencing the PKCS11 label of the key that you manually generated on the Vectera Plus by using FXCLI. The vault command used to create a managed key from a manually generated key on the HSM is almost identical to the command you used to dynamically generate a key on the HSM in the Testing PKI operations section.Run the following command to manually generate a 2048-bit RSA key in Vault with the key label, VaultManualKey:
Shell
In the key\label field, specify the PKCS11 label you assigned to the key by using the keytable extdata FXCLI command in the previous section. The main difference in the command in this step is that it sets allow\generate_key to false to tell Vault not to attempt to generate a key on the HSM if it cannot find the referenced key.

