Annotation of src/external/mpl/bind/dist/bin/tests/system/resolver/ns6/keygen.sh, Revision 1.1.1.1.2.2
1.1.1.1.2.2! pgoyette 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
! 7: # file, You can obtain one at http://mozilla.org/MPL/2.0/.
! 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: zone=ds.example.net
! 16: zonefile="${zone}.db"
! 17: infile="${zonefile}.in"
! 18: cp $infile $zonefile
! 19: ksk=`$KEYGEN -q -a rsasha256 -r $RANDFILE -fk $zone`
! 20: zsk=`$KEYGEN -q -a rsasha256 -r $RANDFILE -b 2048 $zone`
! 21: cat $ksk.key $zsk.key >> $zonefile
! 22: $SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
! 23:
! 24: zone=example.net
! 25: zonefile="${zone}.db"
! 26: infile="${zonefile}.in"
! 27: cp $infile $zonefile
! 28: ksk=`$KEYGEN -q -a rsasha256 -r $RANDFILE -fk $zone`
! 29: zsk=`$KEYGEN -q -a rsasha256 -r $RANDFILE $zone`
! 30: cat $ksk.key $zsk.key dsset-ds.example.net$TP >> $zonefile
! 31: $SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
! 32:
! 33: # Configure a trusted key statement (used by delv)
! 34: keyfile_to_trusted_keys $ksk > ../ns5/trusted.conf
CVSweb <webmaster@jp.NetBSD.org>