From: Matthijs Mekking Date: Tue, 15 Mar 2022 15:10:34 +0000 (+0100) Subject: Test dnssec-policy with multiple key stores X-Git-Tag: v9.19.22~70^2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b5bba3a992b832aa5b59e9eee75903c95c306ed;p=thirdparty%2Fbind9.git Test dnssec-policy with multiple key stores Make sure that if a dnssec-policy uses multiple key stores, the keys have the right attributes and are stored in their appropriate directory. --- diff --git a/bin/tests/system/enginepkcs11/clean.sh b/bin/tests/system/enginepkcs11/clean.sh index 7233784a029..c8b3c79d0db 100644 --- a/bin/tests/system/enginepkcs11/clean.sh +++ b/bin/tests/system/enginepkcs11/clean.sh @@ -23,6 +23,7 @@ rm -f pkcs11-tool.err.* pkcs11-tool.out.* rm -f signer.out.* rm -f ns1/*.example.db ns1/*.example.db.signed rm -f ns1/*.kasp.db ns1/*.kasp.db.signed +rm -f ns1/*.split.db ns1/*.split.db.signed rm -f ns1/*.kskid1 ns1/*.kskid2 ns1/*.zskid1 ns1/*.zskid2 rm -f ns1/dig.out.* rm -f ns1/K* @@ -33,5 +34,6 @@ rm -f ns1/update.cmd.* rm -f ns1/update.log.* rm -f ns1/verify.out.* rm -f ns1/zone.*.jnl ns1/zone.*.jbk +rm -rf ./ns1/keys/ OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-enginepkcs11" >/dev/null 2>&1 || echo_i "softhsm2-enginepkcs11 token not found for cleaning" diff --git a/bin/tests/system/enginepkcs11/setup.sh b/bin/tests/system/enginepkcs11/setup.sh index 59db1246648..54bd9568202 100644 --- a/bin/tests/system/enginepkcs11/setup.sh +++ b/bin/tests/system/enginepkcs11/setup.sh @@ -25,6 +25,8 @@ PWD=$(pwd) copy_setports ns1/named.conf.in ns1/named.conf sed -e "s/@ENGINE_ARGS@/${ENGINE_ARG}/g" ns1/named.args +mkdir ns1/keys + keygen() { type="$1" bits="$2" @@ -115,6 +117,9 @@ for algtypebits in rsasha256:rsa:2048 rsasha512:rsa:2048 \ echo_i "Add zone $alg.kasp to named.conf" cp $infile ${dir}/zone.${alg}.kasp.db + echo_i "Add zone $alg.split to named.conf" + cp $infile ${dir}/zone.${alg}.split.db + echo_i "Add zone $zone to named.conf" cat >>"${dir}/named.conf" <