For RSA Keys

1. Generate the 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

tmpm2wmh1hc.jpg

Key file generation for KSK Key

2. Generate the key file for ZSK.

›_ Console

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

Key file generation for the 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

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

›_ Console

# ls -l K* 
tmpdrz8t4qa.jpg

List files