Troubleshooting

Troubleshooting HSM Connection Error after Credential Addition

Users may experience an initial test failure and will see the following error message:

Test failed: Method C_Logout returned CKR_SESSION_HANDLE_INVALID.

The recommended steps to resolve this:

  1. Save and Exit the Current Page: After observing the error, ensure all changes are saved and then exit the current configuration or settings page.

  2. Re-Access and Test: Navigate back to the HSM configuration page, and then select the 'Test Active Credential' option. Often, users will receive a confirmation message:

    HSM connection successful.

To further validate the successful generation and addition of the key, execute the nkfminfo -k command. If correctly executed, this command should show the creation of a new PKCS11 key following the HSM credential addition.