Blame bin/tests/system/dlv/ns1/sign.sh

Packit 5ce601
#!/bin/sh
Packit 5ce601
#
Packit 5ce601
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit 5ce601
#
Packit 5ce601
# This Source Code Form is subject to the terms of the Mozilla Public
Packit 5ce601
# License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service 704ed8
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
Packit 5ce601
#
Packit 5ce601
# See the COPYRIGHT file distributed with this work for additional
Packit 5ce601
# information regarding copyright ownership.
Packit 5ce601
Packit 5ce601
SYSTEMTESTTOP=../..
Packit 5ce601
. $SYSTEMTESTTOP/conf.sh
Packit 5ce601
Packit 5ce601
SYSTESTDIR=dlv
Packit 5ce601
Packit 5ce601
(cd ../ns2 && $SHELL -e ./sign.sh || exit 1)
Packit 5ce601
Packit 5ce601
echo_i "dlv/ns1/sign.sh"
Packit 5ce601
Packit 5ce601
zone=.
Packit 5ce601
infile=root.db.in
Packit 5ce601
zonefile=root.db
Packit 5ce601
outfile=root.signed
Packit 5ce601
Packit Service d3afd5
keyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
Packit Service d3afd5
keyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
Packit 5ce601
Packit 5ce601
cat $infile $keyname1.key $keyname2.key >$zonefile
Packit 5ce601
Packit 5ce601
$SIGNER -r $RANDFILE -g -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
Packit 5ce601
Packit 5ce601
echo_i "signed $zone"
Packit 5ce601
Packit 5ce601
keyfile_to_trusted_keys $keyname2 > trusted.conf
Packit 5ce601
cp trusted.conf ../ns5
Packit 5ce601
cp trusted.conf ../ns7