The steps given below detail the steps that must be taken during emergency ZSK rollover when using DNSSEC-Tools to assist in rollover.
The rollerd command must not be executing during this procedure.
# rollctl -halt
[ENTER] |
# |
Creating new Current and Published ZSKs may be done with a single zonesigner execution.
# zonesigner -genzsk zone.name
[ENTER] |
# |
The zonesigner command in the previous step will have left the compromised zone's keyrec file in an inconsistent state. Consequently, the keyrec file must be edited to return it to a valid state.
The steps below should be followed to fix the keyrec file for the Current ZSK keys.
Find the name of the zone's keyrec file. This may be done with the following command:
# lsroll -keyrec -terse
rollrec-file
[ENTER] |
# |
Find the name of the zone's Current ZSK signing set. Look for the zone keyrec entry for the compromised zone, and find its zskcur entry. This holds the name of the Current ZSK signing set.
Get the names of the keys in the Current ZSK signing set. Look for the set keyrec entry for the Current ZSK signing set. The keys listed in that set's keys entry are the ZSK keys in the Current ZSK signing set.
Edit the keyrec file and search for all key keyrec entries with a keyrec_type of "zskcur". Any keys with this type that are not in the Current signing set should be given the type "zskobs".
The steps below should be followed to fix the keyrec file for the Published KSK keys.
Find the name of the zone's keyrec file. This may be done with the following command:
# lsroll -keyrec -terse
rollrec-file
[ENTER] |
# |
Find the name of the zone's Published signing set. Look for the zone keyrec entry for the compromised zone, and find its zskpub entry. This holds the name of the Published ZSK signing set.
Get the names of the keys in the Published signing set. Look for the set keyrec entry for the Published ZSK signing set. The keys listed in that set's keys entry are the ZSK keys in the Published ZSK signing set.
Edit the keyrec file and search for all key keyrec entries with a keyrec_type of "zskpub". Any keys with this type that are not in the Published signing set should be given the type "zskobs".
The rndc will reload the name server configuration files and the zone contents. The name server process is assumed to be already running.
# rndc reload zone-name
[ENTER] |
# |