In article <[EMAIL PROTECTED]>, Jean wrote:
> Hi, all,
>     Is it posible to sign with external PKCS11 token such smartcards through
> JSS? In all JSS examples I can see that a private key must be passed in to
> initialize the signature object, but for a smartcard it is imposible to get
> the private key out off the card, it must be signed oncard.
>     I can find an NSS example SecClab(http://secclab.mozdev.org/index.html),
> that can sign with smartcard, but I need to do it in Java, any help is
> appreciated.

Use 'modutil' utility which is included in nss distribution to add
pkcs11 support. 

-add and -libfile parameters are needed.

After that you can access token by invoking

token=manager.getTokenByName("yourtokenname");


--
        Turbo
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]

Reply via email to