Pheox - Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

JCAPI with eToken RSS feed
Forum Index » General Issues
Author Message
muthukumaran_s

Visitor

Joined: Oct 6, 2007
Messages: 1
Offline
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
tommy

Visitor

Joined: May 30, 2005
Messages: 148
Offline
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
 
Forum Index » General Issues
Go to:   
Mobile view
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer