KSK Rollover

1. Generate key file for new KSK.

›_ Console

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

"pkcs11:token=Bind;object=ksk1" example.net 
tmpiwor7fq2.jpg

Key file for new KSK

If you want to generate key files for ECC keys, follow steps in section For ECC Keys.

  1. Add the new KSK to the zone file example.net.

example.net

...  
$include "/usr/local/bin/Kexample.net.+008+65395.key"; //KSK old  
$include "/usr/local/bin/Kexample.net.+008+33262.key"; //KSK new  
...  
  1. Sign the zone with the old and new KSK.

›_ Console

# dnssec-signzone -E pkcs11 -x  -o example.net -k Kexample.net.+008+65395 -k 

Kexample.net.+008+33262 /var/named/example.net 
tmppeuxx_e2.jpg

Signing zone with old and new KSK

  1. Wait for the zone transfer time, TTL of DNSKEY resource record set and TTL on the DS record set.

  2. Remove the old KSK entry from zone file example.net.

example.net

...  
$include "/usr/local/bin/Kexample.net.+008+33262.key"; //KSK new  
...  
  1. Sign the zone with new KSK.

›_ Console

# dnssec-signzone -E pkcs11 -x -o example.net -k Kexample.net.+008+33262 /var/named/example.net 
tmpapio_c66.jpg

Signing the zone with new KSK