2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

move keygeneration out of the timing critical section

This commit is contained in:
Mark Andrews
2012-02-09 21:10:45 +00:00
parent fb604d1cee
commit 77eca24a29

View File

@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE. # PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.19 2011/11/02 13:59:07 marka Exp $ # $Id: tests.sh,v 1.20 2012/02/09 21:10:45 marka Exp $
SYSTEMTESTTOP=.. SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh . $SYSTEMTESTTOP/conf.sh
@@ -29,7 +29,7 @@ pfile=parent.db
czone=child.parent.nil czone=child.parent.nil
cfile=child.db cfile=child.db
echo I:generating keys echo "I:generating child's keys"
# active zsk # active zsk
czsk1=`$KEYGEN -q -r $RANDFILE -L 30 $czone` czsk1=`$KEYGEN -q -r $RANDFILE -L 30 $czone`
@@ -60,16 +60,18 @@ echo I:revoking key
# revoking key changes its ID # revoking key changes its ID
cksk3=`$KEYGEN -q -r $RANDFILE -fk $czone` cksk3=`$KEYGEN -q -r $RANDFILE -fk $czone`
cksk4=`$REVOKE $cksk3` cksk4=`$REVOKE $cksk3`
echo I:generating parent keys
pzsk=`$KEYGEN -q -r $RANDFILE $pzone`
pksk=`$KEYGEN -q -r $RANDFILE -fk $pzone`
echo "I:setting child's activation time"
# using now+30s to fix RT 24561 # using now+30s to fix RT 24561
$SETTIME -A now+30s $cksk2 > /dev/null $SETTIME -A now+30s $cksk2 > /dev/null
echo I:signing child zone echo I:signing child zone
czoneout=`$SIGNER -Sg -e now+1d -X now+2d -r $RANDFILE -o $czone $cfile 2>&1` czoneout=`$SIGNER -Sg -e now+1d -X now+2d -r $RANDFILE -o $czone $cfile 2>&1`
echo I:generating keys
pzsk=`$KEYGEN -q -r $RANDFILE $pzone`
pksk=`$KEYGEN -q -r $RANDFILE -fk $pzone`
echo I:signing parent zone echo I:signing parent zone
pzoneout=`$SIGNER -Sg -r $RANDFILE -o $pzone $pfile 2>&1` pzoneout=`$SIGNER -Sg -r $RANDFILE -o $pzone $pfile 2>&1`