Initialization failed

5/3/2013 3:23:15 PM
dna
Gravatar
Total Posts 5

Initialization failed

Dear all,

 

We have an issue with the following scenario :

Two processes tried to access the HSM PKCS library via Ncryptoki. The first one who gets executed is able to attach to the library and initialize it. The second one receives "Failed to initialize" when trying to Initialize the Cryptoki instance.

 

How can we solve this issue?

Thank you in advance

 

5/3/2013 4:02:28 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Initialization failed

PKCS#11 specification states that each process must call Initialize once in its threads.

If you got such an error it means that you are calling Initialize twice or more in different threads of the same process. Maybe are you calling NCryptoki under IIS?

Anyway, if Initialize returns CKR_CRYPTOKI_ALREADY_INITIALIZED, as I guess, you can ignore this error because the underlying PKCS#11 has already been initialized in another thread and you can continue your work

 

 

5/3/2013 5:27:02 PM
dna
Gravatar
Total Posts 5

Re: Initialization failed

Well, I totally feel stupid on this one. I was sure that it also happened when running on two separate processes... but in fact no. Please excuse my noobiness, I am going to flagellate myself now wink

 

Thank you for the fast answer and sorry!

You can close this topic