]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
set inactive date in keygen instead of settime
authorEvan Hunt <each@isc.org>
Fri, 16 Nov 2018 18:12:46 +0000 (10:12 -0800)
committerEvan Hunt <each@isc.org>
Fri, 16 Nov 2018 19:56:19 +0000 (11:56 -0800)
bin/tests/system/dnssec/tests.sh

index bb2315fbf360e73ca60beabe97b791f01ad285e7..df4aca856b0b8cf18d778cbf2623d2b5634a4da2 100644 (file)
@@ -3139,7 +3139,7 @@ do
           alg=`expr $alg + 1`
           continue;;
        esac
-       key1=`$KEYGEN -a $alg $size -n zone -r $RANDFILE example 2> keygen.err`
+       key1=`$KEYGEN -a $alg $size -I now+4d -r $RANDFILE example 2> keygen.err`
        if grep "unsupported algorithm" keygen.err > /dev/null
        then
                alg=`expr $alg + 1`
@@ -3153,7 +3153,6 @@ do
                alg=`expr $alg + 1`
                continue
        fi
-       $SETTIME -I now+4d $key1.private > /dev/null
        key2=`$KEYGEN -v 10 -r $RANDFILE -i 3d -S $key1.private 2> /dev/null`
        test -f $key2.key -a -f $key2.private || {
                ret=1