mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
revise system tests to use "static-key" syntax instead of "trusted-keys"
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* information regarding copyright ownership.
|
* information regarding copyright ownership.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
trusted-keys {
|
managed-keys {
|
||||||
dlv.isc.org 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWE
|
dlv.isc.org static-key 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWE
|
||||||
n4MxDCE1+lLy2brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8
|
n4MxDCE1+lLy2brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8
|
||||||
+jAGl2FZLK8t+1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ
|
+jAGl2FZLK8t+1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ
|
||||||
2kJb56dhgMde5ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnG
|
2kJb56dhgMde5ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnG
|
||||||
|
@@ -9,12 +9,12 @@
|
|||||||
* information regarding copyright ownership.
|
* information regarding copyright ownership.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
trusted-keys {
|
managed-keys {
|
||||||
# This key (19036) is to be phased out starting in 2017. It will
|
# This key (19036) is to be phased out starting in 2017. It will
|
||||||
# remain in the root zone for some time after its successor key
|
# remain in the root zone for some time after its successor key
|
||||||
# has been added. It will remain this file until it is removed from
|
# has been added. It will remain this file until it is removed from
|
||||||
# the root zone.
|
# the root zone.
|
||||||
. 257 3 8 "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
|
. static-key 257 3 8 "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
|
||||||
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
|
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
|
||||||
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
|
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
|
||||||
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
|
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
|
||||||
|
@@ -383,7 +383,7 @@ echo_i "check that the 2010 ICANN ROOT KSK without the 2017 ICANN ROOT KSK gener
|
|||||||
ret=0
|
ret=0
|
||||||
$CHECKCONF check-root-ksk-2010.conf > checkconf.out$n 2>/dev/null || ret=1
|
$CHECKCONF check-root-ksk-2010.conf > checkconf.out$n 2>/dev/null || ret=1
|
||||||
[ -s checkconf.out$n ] || ret=1
|
[ -s checkconf.out$n ] || ret=1
|
||||||
grep "trusted-key for root from 2010 without updated" checkconf.out$n > /dev/null || ret=1
|
grep "static key for root from 2010 without updated key" checkconf.out$n > /dev/null || ret=1
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
|
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
@@ -406,7 +406,7 @@ echo_i "check that the dlv.isc.org KSK generates a warning ($n)"
|
|||||||
ret=0
|
ret=0
|
||||||
$CHECKCONF check-dlv-ksk-key.conf > checkconf.out$n 2>/dev/null || ret=1
|
$CHECKCONF check-dlv-ksk-key.conf > checkconf.out$n 2>/dev/null || ret=1
|
||||||
[ -s checkconf.out$n ] || ret=1
|
[ -s checkconf.out$n ] || ret=1
|
||||||
grep "trusted-key for dlv.isc.org still present" checkconf.out$n > /dev/null || ret=1
|
grep "static key for dlv.isc.org still present" checkconf.out$n > /dev/null || ret=1
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
|
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
|
||||||
status=`expr $status + $ret`
|
status=`expr $status + $ret`
|
||||||
|
|
||||||
|
@@ -226,17 +226,17 @@ keyfile_to_keys_section() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# keyfile_to_trusted_keys: convert key data contained in the keyfile(s)
|
# keyfile_to_trusted_keys: convert key data contained in the keyfile(s)
|
||||||
# provided to a "trusted-keys" section suitable for including in a
|
# provided to a *static* "managed-keys" section suitable for including in a
|
||||||
# resolver's configuration file
|
# resolver's configuration file
|
||||||
keyfile_to_trusted_keys() {
|
keyfile_to_trusted_keys() {
|
||||||
keyfile_to_keys_section "trusted-keys" "" $*
|
keyfile_to_keys_section "managed-keys" "static-key" $*
|
||||||
}
|
}
|
||||||
|
|
||||||
# keyfile_to_managed_keys: convert key data contained in the keyfile(s)
|
# keyfile_to_managed_keys: convert key data contained in the keyfile(s)
|
||||||
# provided to a "managed-keys" section suitable for including in a
|
# provided to a "managed-keys" section suitable for including in a
|
||||||
# resolver's configuration file
|
# resolver's configuration file
|
||||||
keyfile_to_managed_keys() {
|
keyfile_to_managed_keys() {
|
||||||
keyfile_to_keys_section "managed-keys" "initial-key " $*
|
keyfile_to_keys_section "managed-keys" "initial-key" $*
|
||||||
}
|
}
|
||||||
|
|
||||||
# nextpart*() - functions for reading files incrementally
|
# nextpart*() - functions for reading files incrementally
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
trusted-keys {
|
managed-keys {
|
||||||
"edns512-notcp." 257 3 10 "AwEAAcEBkn/cuVhdRTWMHt19O7h9F4Hx2t68u1JUZg7swLLvwfljqnNYjsKYk9EzUhIaYOAHtVe7//cYwoVU4BFhY2DGbx1YE1LnKIGxfqpopFxDZC34TTl6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8d6SigzxZz1raiJNolVhXyA8SbbDpgBrcoEXN/WjwvWI+2ol5gzlqMeNw/F9SMoWdpGIWkkNCNWBbhLWhp6qfhpRLUFwVys54LGOIGSVRd9uJmc2hPdXoP8ephnCIeNJb8Zp6DnpssyN0JaF815dKkOHff9GEjaiRLj0xWvtZSqNFaGoB";
|
||||||
};
|
};
|
||||||
|
@@ -81,7 +81,7 @@ signzone () {
|
|||||||
KEYNAME=`$KEYGEN -q -a rsasha256 -K $1 $2`
|
KEYNAME=`$KEYGEN -q -a rsasha256 -K $1 $2`
|
||||||
cat $1/$3 $1/$KEYNAME.key > $1/tmp
|
cat $1/$3 $1/$KEYNAME.key > $1/tmp
|
||||||
$SIGNER -P -K $1 -o $2 -f $1/$4 $1/tmp >/dev/null
|
$SIGNER -P -K $1 -o $2 -f $1/$4 $1/tmp >/dev/null
|
||||||
sed -n -e 's/\(.*\) IN DNSKEY \([0-9]\{1,\} [0-9]\{1,\} [0-9]\{1,\}\) \(.*\)/trusted-keys {"\1" \2 "\3";};/p' $1/$KEYNAME.key >>trusted.conf
|
sed -n -e 's/\(.*\) IN DNSKEY \([0-9]\{1,\} [0-9]\{1,\} [0-9]\{1,\}\) \(.*\)/managed-keys {"\1" static-key \2 "\3";};/p' $1/$KEYNAME.key >>trusted.conf
|
||||||
DSFILENAME=dsset-${2}${TP}
|
DSFILENAME=dsset-${2}${TP}
|
||||||
rm $DSFILENAME $1/tmp
|
rm $DSFILENAME $1/tmp
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user