-
Generate a keypair on Utimaco HSM with the help of keytool command.
|
›_ Console |
|---|
|
Provide information when prompted Here:
-
RSA is the key algorithm
-
2048 is the key size
-
NONE is the keystore for HSM
-
PKCS11IMPLKS is the storetype
-
IBMPKCS11Impl-CryptoServer is the provider name
-
ibmrsa is the key name that will be generated on Utimaco HSM
Provide the keystore password when prompted:
Key generation using keytool command
-
Verify the entry with same alias name is generated using keytool command.
|
›_ Console |
|---|
|
Here:
-
NONE is the keystore for HSM
-
PKCS11IMPLKS is the storetype
-
IBMPKCS11Impl-CryptoServer is the provider’s name
Provide the keystore password when prompted:
Listkeys output
-
List the objects using p11tool2.
|
›_ Console |
|---|
|
Enter user PIN when prompted:
List keys output using p11tool2
-
Generate a CSR using Keytool command.
|
›_ Console |
|---|
|
Here:
-
NONE is the keystore for HSM
-
PKCS11IMPLKS is the storetype
-
IBMPKCS11Impl-CryptoServer is the provider name
-
ibmrsa is the key name
-
ibm.csr is the CSR file name that will be generated
Provide keystore password when prompted
-
Get this CSR signed by CA.
-
Copy the signed certificate and root CA certificate on the IBMPKCS11 server.
-
Import Root CA certificate into HSM keystore.
|
›_ Console |
|---|
|
Importing root certificate into keystore
-
Import the signed certificate reply using the command below.
|
›_ Console |
|---|
|
Import user certificate into keystore
-
Verify that the keytool command shows the signed certificate as well as root CA certificate.
|
›_ Console |
|---|
|
Here:
-
NONE is the keystore for HSM
-
PKCS11IMPLKS is the storetype
-
IBMPKCS11Impl-CryptoServer is the provider’s name
Provide the keystore password when prompted:
Listkeys output showing signed certificate as well as root CA
-
Sign any sample jar file with jarsigner command.
|
›_ Console |
|---|
|
Here
-
http://timestamp.digicert.com is URL of timestamp server
-
NONE is the keystore for HSM
-
PKCS11IMPLKS is the storetype
-
IBMPKCS11Impl-CryptoServer is the provider’s name
-
hello_worldoutput.jar is the new output signed jar file that will be generated
-
HelloWorld-0.7.0.jar is the jar file to be signed
-
ibmrsa is the RSA key used for jar signing
Provide the keystore password when prompted:
Signing the jar using jarsigner command
-
Verify the signed jar.
|
›_ Console |
|---|
|
Here hello_worldoutput.jar is the newly generated signed jar file:
Verifying signed jar