cmu verifyhsm

This command allows you to verify that the client is connected to a genuine Luna HSM, by creating and verifying a confirmation on a temporary key created in the HSM. It also includes a proof of possession that asks the HSM to sign a user-entered string as proof the associated private key is present within the target HSM.

The root certificate is not included in the client package.Download the Luna Cloud HSM Certificate and copy it to your client directory to execute cmu verifyhsm.

Syntax

cmu verifyhsm -challenge="<string>" [-rootcert=<filename>]

Argument(s) Description
-challenge=<string> Defines a user-entered string for the HSM to sign.
-rootcert=<filename> Defines the name of the .pem file that contains the root certificate.

See also Common CMU Options.

Example

./cmu verifyhsm -challenge "1234567890" -rootcert root_device_prod.crt
Select token
 [0] Token Label: mypartition-1
 [1] Token Label: mypartition-2
 Enter choice: 0
Please enter password for token in slot 0 : *******
Reading rootcert from file "root_device_prod.crt"... ok.
Generating temporary RSA keypair in HSM... ok.
Extracting PKC bundle from HSM... ok.
Verifying PKC certificate... ok.
Verifying DAC certificate... ok.
Verifying HOC certificate... ok.
Verifying MIC certificate... ok.
Verifying MIC against rootcert... ok.
Signing and verifying challenge... ok.
Verifying HSM serial number... ok.
Overall status: Success.