Testing Key Generation onto the Utimaco HSM using OpenDNSSEC

  1. Run the below command to generate the keys using the ods-hsmutil utility onto Utimaco HSM.

›_ Console

# ods-hsmutil generate utimaco rsa 2048         
image-3285221577-1.jpg

Generate RSA key output

  1. Using p11tool2 utility, verify the keys are created on the HSM using the below command.

›_ Console

# p11tool2 slot=9 loginuser=123456 listobjects 
image-3285221577-2.jpg

ListObjects output

  1. List the contents of OpenDNSSEC Repository and verify the keys created is listed below with the command below.

›_ Console

# ods-hsmutil list utimaco 
image-3285221577-3.jpg

List DNSSEC keys output

  1. Test the HSM by generating a DNSKEY Resource Record using the previously created RSA key.

›_ Console

# ods-hsmutil dnskey  dd68f48d0f2f67c5cd6b3d8f6e01b93a  utimaco 256 5 
image-3285221577-4.jpg

Generate resource record DNSKEY output

  1. (Optional) If the user wants to delete the key from the local repository, use the command below.

›_ Console

# ods-hsmutil remove dd68f48d0f2f67c5cd6b3d8f6e01b93a 
image-3285221577-5.jpg

Delete DNSSEC key output

Deleting the key from local repository using the above command will also delete the key from HSM. To verify run p11tool2 command as described in the step 2 above.

  1. (Optional) Now, as the communication between the Utimaco HSM and OpenDNSSEC is established and verified, you can run a few built-in tests as shown below.

›_ Console

# ods-hsmutil test utimaco 
image-3285221577-7.jpg

DNSSEC built-in test output

image-3285221577-8.jpg

DNSSEC built-in test output

DSA, GOST, ED25519 and ED448tests are expected to be failed, as they are not supported by the HSM.