I am running the Pkcs11Interop.X509Store code inside an MVC client application to access the HSM device's private key in order to generate file signatures with BouncyCastle. The following error occurred:
Inner Exception 1:
Pkcs11Exception: Method C_Initialize returned CKR_GENERAL_ERROR
System.TypeInitializationException
This exception was originally thrown at this call stack:
[External Code]
Net.Pkcs11Interop.X509Store.SoftHsm2Manager.InitializeTokens() in SoftHsm2Manager.cs
Net.Pkcs11Interop.X509Store.SoftHsm2Manager.Soft
Has anyone ever experienced this?
I am running the Pkcs11Interop.X509Store code inside an MVC client application to access the HSM device's private key in order to generate file signatures with BouncyCastle. The following error occurred:
Inner Exception 1: Pkcs11Exception: Method C_Initialize returned CKR_GENERAL_ERROR
System.TypeInitializationException
This exception was originally thrown at this call stack: [External Code] Net.Pkcs11Interop.X509Store.SoftHsm2Manager.InitializeTokens() in SoftHsm2Manager.cs Net.Pkcs11Interop.X509Store.SoftHsm2Manager.Soft