title: HSM: Error while opening connection to the HSM
body: <p>Receiving the <code>CKR_GENERAL_ERROR</code> when the application tries to open a connection to the H/W HSM.</p>
  
  <p>The error in detail is:</p>
  
  <pre><code>50004-Crypto API could not be open.
  Caused by: xxx.xxx.xxx.cryptoapi.CryptoApiSysException: Error opening session!!
  Caused by: iaik.pkcs.pkcs11.wrapper.PKCS11Exception: CKR_GENERAL_ERROR
          at iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.C_Initialize(Native Method) ~[pkcs11Wrapper-1.2.18.jar:1.2.18]
          at iaik.pkcs.pkcs11.Module.initialize(Module.java:307) ~[pkcs11Wrapper-1.2.18.jar:1.2.18]
  </code></pre>
  
  <p>Could anyone please tell what might be the reason for this error? The application works fine with the software HSM.</p>
  
  <p>H/W HSM details:</p>
  
  <ul>
  <li>ProtectToolkit C Key management utility : 4.2.0 (even tried with 4.3.0)</li>
  <li>Manufacturer : Eracom</li>
  <li>Hardware version : 66.00</li>
  <li>Firmware version : 2.02</li>
  </ul>