[BACK]Return to sign.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / bin / tests / system / redirect / ns5

Annotation of src/external/mpl/bind/dist/bin/tests/system/redirect/ns5/sign.sh, Revision 1.1.1.3

1.1       christos    1: #!/bin/sh -e
                      2: #
                      3: # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
                      4: #
                      5: # This Source Code Form is subject to the terms of the Mozilla Public
                      6: # License, v. 2.0. If a copy of the MPL was not distributed with this
1.1.1.3 ! christos    7: # file, you can obtain one at https://mozilla.org/MPL/2.0/.
1.1       christos    8: #
                      9: # See the COPYRIGHT file distributed with this work for additional
                     10: # information regarding copyright ownership.
                     11:
                     12: SYSTEMTESTTOP=../..
                     13: . $SYSTEMTESTTOP/conf.sh
                     14:
                     15: # We sign the zone here and move the signed zone to ns6.
                     16: # The ns5 server actually does not serve this zone but
                     17: # the DS and NS records are in the test root zone, and
                     18: # delegate to ns6.
                     19: zone=signed.
                     20: infile=signed.db.in
                     21: zonefile=signed.db
                     22:
                     23: key1=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS $zone 2> /dev/null`
                     24: key2=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -fk $zone 2> /dev/null`
                     25:
                     26: cat $infile $key1.key $key2.key > $zonefile
                     27:
1.1.1.2   christos   28: $SIGNER -P -g -O full -o $zone $zonefile > sign.ns5.signed.out
1.1       christos   29:
                     30: cp signed.db.signed ../ns6
                     31:
                     32: # Root zone.
                     33: zone=.
                     34: infile=root.db.in
                     35: zonefile=root.db
                     36:
                     37: key1=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS $zone 2> /dev/null`
                     38: key2=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -fk $zone 2> /dev/null`
                     39:
                     40: # cat $infile $key1.key $key2.key > $zonefile
                     41: cat $infile dsset-signed. $key1.key $key2.key > $zonefile
                     42:
1.1.1.2   christos   43: $SIGNER -P -g -O full -o $zone $zonefile > sign.ns5.root.out

CVSweb <webmaster@jp.NetBSD.org>