keygen.sh revision e939674d53a127ddeeaf4b41fd72933f0b493308
#
# Copyright (C) 2009-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: keygen.sh,v 1.15 2012/02/06 23:46:46 tbox Exp $
SYSTEMTESTTOP=../..
echo "D:${debug}: dumping ${1}"
}
echo "I:setting up zone: $1"
debug="$1"
zone="$1"
zonefile="${zone}.db"
infile="${zonefile}.in"
n=`expr ${n:-0} + 1`
}
#
#
#
#
#
#
#
# A nsec3 zone (non-optout).
#
#
# An NSEC3 zone, with NSEC3 parameters set prior to signing
#
echo $ksk > ../autoksk.key
echo $zsk > ../autozsk.key
#
#
#
#
#
#
#
# A optout nsec3 zone.
#
#
# A RSASHA256 zone.
#
#
# A RSASHA512 zone.
#
#
# NSEC-only zone.
#
#
# Signature refresh test zone. Signatures are set to expire long
# in the past; they should be updated by autosign.
#
#
# NSEC3->NSEC transition test zone.
#
#
# secure-to-insecure transition test zone; used to test removal of
# keys via nsupdate
#
#
# another secure-to-insecure transition test zone; used to test
# removal of keys on schedule.
#
#
# Introducing a pre-published key test.
#
#
# Key TTL tests.
#
# no default key TTL; DNSKEY should get SOA TTL
# default key TTL should be used
# mismatched key TTLs, should use shortest
# existing DNSKEY RRset, should retain TTL
#
# A zone with a DNSKEY RRset that is published before it's activated
#
echo $ksk > ../delayksk.key
echo $zsk > ../delayzsk.key
#
# A zone with signatures that are already expired, and the private ZSK
# is missing.
#
$SIGNER -S -P -s now-1mo -e now-1mi -o $zone -f $zonefile ${zonefile}.in > s.out 2>&1 || dumpit s.out
echo $zsk > ../missingzsk.key
#
# A zone with signatures that are already expired, and the private ZSK
# is inactive.
#
$SIGNER -S -P -s now-1mo -e now-1mi -o $zone -f $zonefile ${zonefile}.in > s.out 2>&1 || dumpit s.out
echo $zsk > ../inactivezsk.key
#
# A zone that is set to 'auto-dnssec maintain' during a recofnig
#
#
# A zone which generates a CDS and CDNSEY RRsets automatically
#