Use the userpass authentication
The userpass authentication method allows the KMES Series 3 to authenticate with Vault by using a username and password combination. Perform the following tasks, which are described in this section:- Configure userpass authentication in Vault.
- Create a userpass cloud credential on the KMES Series 3.
- Test userpass authentication.
Configure userpass authentication in Vault
You can configure userpass authentication by using the Vault UI or the CLI as described in the following sections.Use the Vault UI
Perform the following steps to use the Vault UI:Use the Vault CLI
Perform the following steps to use the Vault CLI:Create an authentication credential
Perform the following steps to create a Vault userpass authentication cloud credential on the KMES Series 3:You can specify any value in the Name field, but the Access Name value must match the name of the user that you created under the userpass auth method in Vault.
In the Password field, select [ Enter ] and set the same password you set for the user created in Vault. Select [ Save ].
Test userpass authentication
Perform the following steps to test userpass authentication:Set the Vault API URL to
https:/``/<IP of your HashiCorp Vault Server>``:8210/v1 and select the Vault Userpass Authentication Cloud Credential created in the previous step.Leave the rest of the fields set to their default values. Select [ Test Configuration ].
If the configuration is correct, a message indicates that the authentication and permission tests were successful.
Use the TLS certificate authentication
The cert authentication method allows the KMES Series 3 to authenticate with Vault by using SSL/TLS client certificates signed by a CA or self-signed. Perform the following tasks, which are described in this section:- Configure cert authentication in Vault.
- Create a Vault certificate cloud credential on the KMES Series 3.
- Test cert authentication.
Configure cert authentication in Vault
You can configure cert authentication by using the Vault UI or the CLI as described in the following sections.Use the Vault UI
Perform the following steps to use the Vault UI:Use the Vault CLI
Perform the following steps to use the Vault CLI:Run the following command to configure it with trusted certificates that are allowed to authenticate:This command creates a new trusted certificate, certificate_authentication_demo, with the same display name and the web and prod policies. The
Shell
chain.pem file provides the certificate (public key) used to verify clients. You can set an optional ttl value (a number of seconds) to limit the lease duration.Create a certificate cloud credential
Perform the following steps to create a Vault certificate cloud credential on the KMES Series 3:You can specify any value in the Name field, but the Access Name value must match the name of the certificate that you created under the cert auth method in Vault (in this case, certificate_authentication_demo).
Leave the TLS Config field set to the default value, Vault Client, which configures the Cloud Credential to use the Vault Client connection pair for authenticating with Vault.
Test cert authentication
Perform the following steps to test cert authentication:Set the Vault API URL to
https://``<IP of your HashiCorp Vault Server>``:8210/v1 and select the Vault Certificate Authentication Cloud Credential created in the previous step.If the configuration completes properly, a message states that the Authentication and permission tests were successful. Select [ OK ].

