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 12SYSTEMTESTTOP=../.. 13. $SYSTEMTESTTOP/conf.sh 14 15zone=. 16infile=root.db.in 17zonefile=root.db 18 19(cd ../ns2 && $SHELL sign.sh) 20 21cp ../ns2/dsset-good$TP . 22cp ../ns2/dsset-bad$TP . 23 24key1=`$KEYGEN -q -a RSASHA1 -b 1024 -n zone $zone` 25key2=`$KEYGEN -q -a RSASHA1 -b 2048 -n zone -f KSK $zone` 26 27cat $infile $key1.key $key2.key > $zonefile 28 29$SIGNER -P -g -o $zone $zonefile > /dev/null 30 31# Configure the resolving server with a static key. 32keyfile_to_static_ds $key2 > trusted.conf 33cp trusted.conf ../ns2/trusted.conf 34cp trusted.conf ../ns3/trusted.conf 35cp trusted.conf ../ns4/trusted.conf 36