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