Vault HSM - CAVLT137E Cannot initialize HSM provider (Code 1102, -1)

Vault HSM - CAVLT137E Cannot initialize HSM provider (Code 1102, -1)

133
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:56 PM


Symptom


When starting the vault, the following appears in ITAlog.log:

Vault HSM - CAVLT137E Cannot initialize HSM provider (Code 1102, -1)



Environment


12.2;12.6;13.0;14.0;14.2;14.4;14.6 HSM all versions

Cause


This error can potentially mean that there is something wrong with the DLL being referenced by the HSM that is preventing the library from initializing. Most often this is because the HSM is expecting a 64-bit DLL and received a 32-bit one.

 

Having said that, this error might generally indicate a fundamental issue with HSM Server simply returning an error code when HSM Client (on behalf of Vault) attempts to initialize connection with it.



Resolution


Check the following value in DBparm.ini:

PCKS11ProviderPath
PCKS11ProviderPath

And ensure that the DLL being referenced is the correct version. Please see below for more information as to DLL requirements for the vault:

https://community.cyberark.com/s/article/HSM-Technical-Requirements

 

If the DLL being referenced is already the correct version, it is advisable to enable the PKCS#11 debugging on the HSM Client side (installed in the Vault machine), e.g. nFast for nCipher, Luna Client for Thales, etc..

 

From the PKCS#11 debug log, if any PKCS#11 error code is found during the connection initialization (e.g. C_Initialize function), then we can confirm that the problem is with either the HSM Client or the HSM Server or both (and not with the Vault itself as Vault relies on HSM Client to initialize and establish connection with HSM Server).

 

This KB Article shows how to enable HSM debug in Vault and how to convert RV message received by Vault to a PKCS#11 error code:

https://community.cyberark.com/s/article/00004572



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000zYBCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail