Initialize Vault
Before performing the test PKI operations, perform the following steps to initialize, unseal (if required), and log in to Vault:1
In a different terminal window from where Vault is running, run the following commands to set the
VAULT_ADDR and PIN environment variables.Shell
2
Run the following command to check the Vault status.
Shell
If the operation succeeds, the output should be similar to the following example:
Shell
3
Run the following command to initialize Vault:
Shell
If the operation succeeds, the output should be similar to the following example:
Shell
4
If the HSM auto unseal is not configured, run the following command to unseal Vault manually:
Shell
5
Run the following command to log in to Vault:
Shell
Generate managed keys
Perform the following steps to generate managed keys on the KMES Series 3 for the Root and intermediate CA:1
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
2
Run the following command to generate a managed key on the KMES for the intermediate CA:
Shell
3
Run the following command to verify that the key configurations have been written to Vault:
Shell
4
Run the following commands to verify that the key configurations are valid by test signing some data:
Shell
Enable the PKI Secrets Engine
Perform the following steps to enable the PKI Secrets Engine for the Root and intermediate CA:1
Run the following command to enable the PKI secrets engine for the Root CA:
Shell
2
Run the following command to enable the PKI secrets engine for the Intermediate CA:
Shell
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:1
Run the following command to create a Root CA certificate with its corresponding managed key and output it to a file:
Shell
2
Run the following command to verify that the certificate looks correct:
None
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 31
Run 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
2
Run the following command to verify that the certificate looks correct:
Shell
Sign the CA certificate
Perform the following steps to sign the intermediate CA certificate with the managed Root CA:1
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
2
Run the following command to write the signed Intermediate CA certificate to Vault:
Shell
Issue a leaf certificate
Perform the following steps to issue a leaf certificate from the intermediate CA:1
Run the following command to create a new role:
Shell
2
Run the following command to issue a leaf certificate:
Shell

