Pravin
Pravin

Reputation: 195

how to access private key from eToken with jsp

It's my first time to here, so please forgive me at first time if I make mistake. I am new to RSA(Cryptography), My requirement is, accessing private key from eToken for decryption and store decrypted data in a file. I want to ask here that where to find private key & how to access it via jsp page? I am using Spring 3 and RSA. Please share resource if any available. Thanks

Upvotes: 1

Views: 1750

Answers (1)

Wyzard
Wyzard

Reputation: 34571

Is the "eToken" the product described here? If so, it's basically a smartcard, which means you can't extract the private key. The way you'd use it is to send the encrypted data to the token and have it decrypt for you.

You said you're using JSP. Are you trying to utilize an eToken plugged into your server, or into the client's PC? A JSP page on your server can't talk to devices plugged into the client's PC; you'd need an application running on the client (maybe a browser plugin) to do it on your behalf.

If it were possible for a website to extract the private key from a user's eToken, the eToken would be worthless as a security product.

Upvotes: 2

Related Questions