]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Offline KSK and dnssec-policy not yet supported
authorMatthijs Mekking <matthijs@isc.org>
Tue, 30 Jan 2024 16:10:28 +0000 (17:10 +0100)
committerNicki Křížek <nicki@isc.org>
Mon, 6 May 2024 12:44:10 +0000 (14:44 +0200)
If the key is offline and the keymgr runs, it will treat it as a missing key,
and generate a new key (according to the policy). Fix the test by putting
back the KSK temporarily when we run 'rndc loadkeys'.

bin/tests/system/dnssec/tests.sh

index 30e4b800951d7a94e2c5a234481ef272e4b3570f..1bd0386b7a6dbc4ad1a190bc4e75940b4f4d87b5 100644 (file)
@@ -4273,6 +4273,11 @@ for qtype in "SOA" "TXT"; do
   status=$((status + ret))
 done
 
+# Put back the KSK.
+echo_i "put back the KSK $KSK_ID for zone $zone from disk"
+mv ns2/$KSK.key.bak ns2/$KSK.key
+mv ns2/$KSK.private.bak ns2/$KSK.private
+
 # Make the new ZSK (ZSK3) active.
 echo_i "make new ZSK $ZSK_ID3 active for zone $zone ($n)"
 ret=0
@@ -4296,6 +4301,11 @@ n=$((n + 1))
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status + ret))
 
+# Remove the KSK from disk.
+echo_i "remove the KSK $KSK_ID for zone $zone from disk"
+mv ns2/$KSK.key ns2/$KSK.key.bak
+mv ns2/$KSK.private ns2/$KSK.private.bak
+
 # Update the zone that requires a resign of the SOA RRset.
 echo_i "update the zone with $zone IN TXT nsupdate added me one more time"
 (