1#!/bin/sh 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 19cp ../ns2/dsset-example.in dsset-example$TP 20 21keyname=`$KEYGEN -q -a RSASHA1 -b 1024 -n zone $zone` 22 23cat $infile $keyname.key > $zonefile 24 25$SIGNER -P -g -o $zone $zonefile > /dev/null 26 27# Configure the resolving server with a trusted key. 28keyfile_to_trusted_keys $keyname > trusted.conf 29cp trusted.conf ../ns2/trusted.conf 30cp trusted.conf ../ns3/trusted.conf 31 32cd ../ns2 && $SHELL -e ./sign.sh 33