Java code for nShield Connect

1.6k Views Asked by At

I am looking for a sample java code for connecting nShield Connect HSM by using PKCS11 library. RSA key is created on token slot 1 and soft token slot 2. Imported Certificate is on slot 1. I like to connect to HSM, read the slot 1 and find the certificate and sign the XML document.

1

There are 1 best solutions below

0
On

I know I am late but here goes for those who have the same problem:

You can use Sun PKCS#11 Provider or IAIK to connect Java programs to the PKCS#11 libraries.

This tutorial explains how to use JCE for cryptographic operations e.g. encrypt, sign, etc.