2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews#!/bin/sh
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2004, 2007, 2009-2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
60988462e5d6db53205851d056e3482a29239be9Evan HuntSYSTEMTESTTOP=../..
60988462e5d6db53205851d056e3482a29239be9Evan Hunt. $SYSTEMTESTTOP/conf.sh
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews
60988462e5d6db53205851d056e3482a29239be9Evan Hunt(cd ../ns6 && $SHELL -e ./sign.sh)
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I:dlv/ns3/sign.sh"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsdlvzone=dlv.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsdlvsets=
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsdssets=
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child1.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child1.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child1.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child3.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child3.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child3.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child4.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child4.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child4.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child5.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child5.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child5.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child7.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child7.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child7.signed
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child8.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child8.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child8.signed
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child9.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child9.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child9.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=child10.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=child.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=child10.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=child10.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child1.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child1.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child1.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child3.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child3.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child3.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child4.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child4.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child4.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child5.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child5.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child5.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child7.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child7.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child7.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidsfilename=../ns6/dsset-grand.`echo $zone |sed -e "s/\.$//g"`$TP
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $infile $keyname1.key $keyname2.key $dsfilename >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child8.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child8.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child8.druz.signed
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child9.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child9.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child9.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszone=child10.druz.
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsinfile=child.db.in
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewszonefile=child10.druz.db
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsoutfile=child10.druz.signed
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidlvsets="$dlvsets dlvset-`echo $zone |sed -e "s/.$//g"`$TP"
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickidssets="$dssets dsset-`echo $zone |sed -e "s/.$//g"`$TP"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscat $infile $keyname1.key $keyname2.key >$zonefile
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews$SIGNER -r $RANDFILE -l $dlvzone -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewsecho "I: signed $zone"
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszone=dlv.utld.
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsinfile=dlv.db.in
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewszonefile=dlv.utld.db
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsoutfile=dlv.signed
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrewskeyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewscat $infile $dlvsets $keyname1.key $keyname2.key >$zonefile
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
e27d55e3ee06b6edcf625b8920a5c809da7f0b98Mark Andrews$SIGNER -r $RANDFILE -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsecho "I: signed $zone"
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews
0ce9fba8f0efa1f8107fbcf194009ce1199769e9Evan Huntgrep -v '^;' $keyname2.key | $PERL -n -e '
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewslocal ($dn, $class, $type, $flags, $proto, $alg, @rest) = split;
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewslocal $key = join("", @rest);
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewsprint <<EOF
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrewstrusted-keys {
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews "$dn" $flags $proto $alg "$key";
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark Andrews};
2cd8fa3ef9b168429dcf76603e7b95c58317dd28Mark AndrewsEOF
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews' > trusted-dlv.conf
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscp trusted-dlv.conf ../ns5
ea8278253210df030a24f0c89342b43fe279a127Mark Andrews
ea8278253210df030a24f0c89342b43fe279a127Mark Andrewscp $dssets ../ns2