I want to generate key pair on token directly,then use public key for generate a certificate request.
I think, it is possible with cryptoProvider class(TElPKCS11CryptoProv­ider) but i dont know how to use it because there isnt any discription for this class in eldos helpDocument. I want to know is it developed in new version? tanx

sounds in English like that: "PKCS#11 error in function C_GenerateKeyPair() (error is CKR_TEMPLATE_INCONSISTENT)". This error is usually returned if the token driver does not understand one or more parameters in the attributes template passed to the keypair generation function. This issue requires further investigation; I have created a Helpdesk ticket for you. Let's continue the discussion there.

Hi.
I checked beta version 7.1 to generate a self sign certificate directly in a token.at first the key pair has generated on the token but after that i got this error : "Secret key not found".
you can see my code as below. please tell me how i can do it.

1) Have you logged into the session with a valid PIN prior to generating the certificate?
2) Does the code I have referenced in the second message of this topic work without errors for you?
3) Please upgrade to the latest available SBB build (7.2.168) prior to testing. It is a good idea to always try the latest available build.

1) yes , i have logged into the session with a valid pin.
2) yes, it works. but i want to generate certificate on my token,not only key pair.
i can generate key pair on my token, but i can`t generate a self sign certificate directly on it.
3) thank you, i`ll check it asap.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.