For RSA Keys

1. Generate key file for KSK.

›_ Console

# dnssec-keyfromlabel -E pkcs11 -f KSK a- RSASHA256 -l 

"pkcs11:token=Bind;object=ksk" example.net 

Where the parameters:

  • -E Is for engine.

  • -l specifies the key label in pkcs11 URI format.

  • -f specifies the key flag.

  • -a is the algorithm.

  • example.net is name of zone.

tmphos8fo25.jpg

Key file generation for KSK key

2. Generate key file for ZSK.

›_ Console

# dnssec-keyfromlabel -E pkcs11 -a RSASHA256 -l "pkcs11:token=Bind;object=zsk" example.net 
tmpiadu66ma.jpg

Key file generation for ZSK key

Where the parameters:

  • -E Is for engine.

  • -l specifies the key label in pkcs11 URI format.

  • -a is the algorithm.

  • example.net is name of zone.

  1. Verify that you have two KSK and two ZSK key files available.

›_ Console

# ls -l K* 
tmpssb_627h.jpg

List files