For ECC Keys

  1. Generate the key file for KSK.

›_ Console

# dnssec-keyfromlabel -E pkcs11 -f KSK a- ECDSAP256SHA256 -l "pkcs11:token=Bind9;object=ksk" exampleecc.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

tmpw10h74lz.jpg

Key file generation for the KSK Key

  1. Generate the key file for ZSK.

›_ Console

# dnssec-keyfromlabel -E pkcs11 -a ECDSAP256SHA256 -l "pkcs11:token=Bind9;object=zsk" exampleecc.net 
tmpykkwo93g.jpg

Key file generation for the ZSK Key

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

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

›_ Console

# ls -l K* 
tmpuxi0tzwe.jpg

List files