Skip this section if you are not using CP5 HSM.
In CP5 a private key cannot be used without being authorized. For authorizing a key, you first need to initialize the private key with an authorization key, then set the authorization with the AuthorizeKey command.
-
List Keys using the cxitool:
|
›_ Console |
|---|
|
|
cxitool listkeys output
Note down the spec id for RSA private key. In our example it is 3.
-
Check Status of Key Initialization using cxitool:
|
›_ Console |
|---|
|
|
Key initialized status
As you can see key initialized status is false.
-
Run the command below to generate the user authentication key file ka.key, that contains an RSA key pair of the given size. This authentication key will be used to initialize the DKE_Key in the next step.
|
›_ Console |
|---|
|
|
cxitool listkeys output
-
Initialize the DKE_Key with ka.key file using the cxitool:
|
›_ Console |
|---|
|
|
Initialize the DKE_Key with the ka.key file
-
Authorize the DKE_Key with the authentication key file ka.key:
|
›_ Console |
|---|
|
|
cxitool listkeys output
-
Check the initialization status of the key:
|
›_ Console |
|---|
|
|
Initialization status of the key
The key initialized status is true.