How to use digital certificates with jsf?

214 Views Asked by At

I need to sign a xml document using a token device in the client. How can i extract the private key from the token using JSF? I used to do it using an Applet.

1

There are 1 best solutions below

2
pedrofb On BEST ANSWER

Basically you can't use a token device on a browser for any other thing than SSL authentication.

The security restrictions of the browsers does not allow you to access the system certificate keystore or use a PKCS#11 driver so you can not make a digital signature

In the old days the browsers allowed to run applets, but now it is not possible anymore. You would need to use an external software