Initialize Vault
Before performing the test PKI operations, perform the following steps to initialize, unseal (if required), and log in to Vault:In a different terminal window from where Vault is running, run the following commands to set the
VAULT_ADDR and PIN environment variables.Shell
Run the following command to check the Vault status.
Shell
If the operation succeeds, the output should be similar to the following example:
Shell
Run the following command to initialize Vault:
Shell
If the operation succeeds, the output should be similar to the following example:
Shell
Generate managed keys
Perform the following steps to generate managed keys on the KMES Series 3 for the Root and intermediate CA:Run the following command to generate a managed key on the KMES Series 3 for the Root CA:The value specified in the library field in the preceding command must match the value set in the name field of the kms_library stanza in the Vault configuration file (shown in the following example). The value specified in the token_label field in the preceding command must be Futurex.
Shell
None
Enable the PKI Secrets Engine
Perform the following steps to enable the PKI Secrets Engine for the Root and intermediate CA:Create a Root CA certificate
Perform the following steps to create a Root CA certificate with the corresponding managed key that you generated and stored on the KMES Series 3:Run the following command to create a Root CA certificate with its corresponding managed key and output it to a file:
Shell
Create a CSR
Perform the following steps to create a CSR for the intermediate CA with the managed key that you generated and stored on the KMES Series 3Run the following command to create an Intermediate CA certificate with its corresponding managed key and output it to a file:
The following command requires you to install the
jq package on your system. This package processes JSON output.Shell
Sign the CA certificate
Perform the following steps to sign the intermediate CA certificate with the managed Root CA:Run the following command to sign the intermediate CA certificate with the managed Root CA and output it to a file:
The following command requires you to install the
jq package on your system. This package processes JSON output.Shell

