Register /
Login
|
Desktop view
|
General Issues
»
JCAPI with eToken
Author:
muthukumaran_s, Visitor
06/10/2007 18:31:45
Hi,
I just download the evaluation version of JCAPI and i am using to get it to the keys from eToken.
I am trying to use RSA/ECB/PKCS1Padding for Encryption.
I am able to get the public key and encrypt the data.
But while try to get the private key for decryption, I am getting following exception
com.pheox.jcapi.JCAPIJNIRuntimeException: Exception raised in JCAPI.DLL:
JCAPICipher_decrypt() - Could not acquire a key container handle.
Keyset does not exist
Error code: 0x80090016
at com.pheox.jcapi.CoreCipherJNI.decrypt(Native Method)
at com.pheox.jcapi.d.a(Unknown Source)
at com.pheox.jcapi.JCAPICipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(DashoA13*..)
Please tell me why it is not able to get the private key from eToken.
Regards
Muthu kumaran.S
Author:
tommy, Visitor
06/10/2007 19:55:06
Hi Muthu,
We need to get some more information from you in order to solve this:
1. Please read chapter 7 (page 35) in the JCAPI User's Guide and post the requested information mentioned there. Especially important is to get your output from executing the following: JCAPIUtil.getEnvironmentInfo();
2. What is the full name of your eToken e.g eToken PRO 32k USB Token?
3. Perhaps a stupid question, but does your eToken function correctly in other environments i.e signing and decryption works alright in other programs?
Regards,
Tommy
Register /
Login
|
Desktop view
|