static Module pkcs11Module = Module.getInstance(@"C:\Program Files (x86)\SafeNet\Protect Toolkit 5\Protect Toolkit C SDK\bin\sw\cryptoki.dll");
public HsmManager()
{
try
{
pkcs11Module.initialize(null);
Slot[] terminals = pkcs11Module.getSlotList(true);
Slot s;
Token token = terminals[0].Token;
Session session = token.openSession(false, false, null, null);
char[] pass = new char[] { '1', '2', '3', '4' };
session.login(true, pass);}}
I do the sealing process with the hsm device in c # with the pkcs11 library (without using any other library). The error message is Message ="CKR_USER_PIN_NOT_INITIALIZED " What's wrong? Thanks