Hi !! I have a couple of certificates in a smart card. I can list them using : "PK11_ListCerts". Then I take one of then (from the certList object) and try to get the associated private key using "PK11_FindKeyByAnyCert(theCert, NULL)". The surprising thing is that it succeeds, I mean, I get a private key without using a pin code. (I checked the key type to see if the "key" I got is a real one, and it actually matchs: it is a rsa key). I fixed, as a test, a callback password function (with PK11_SetPasswordFunc) that returns the pin code needed to retrieve the private key but I found that the function is never called by PK11_FindKeyByAnyCert. What's wrong? Am I understanding those functions in a wrong way?
Thanks in advance! /R
