mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 14:39:59 -04:00
set inactive date in keygen instead of settime
This commit is contained in:
parent
a37f21fdcf
commit
731f27e77e
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue