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 https://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=ds.example.net
16zonefile="${zone}.db"
17infile="${zonefile}.in"
18cp $infile $zonefile
19ksk=`$KEYGEN -q -3 -r $RANDFILE -fk $zone`
20zsk=`$KEYGEN -q -3 -r $RANDFILE -b 2048 $zone`
21cat $ksk.key $zsk.key >> $zonefile
22$SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
23
24zone=example.net
25zonefile="${zone}.db"
26infile="${zonefile}.in"
27cp $infile $zonefile
28ksk=`$KEYGEN -q -3 -r $RANDFILE -fk $zone`
29zsk=`$KEYGEN -q -3 -r $RANDFILE $zone`
30cat $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)
34keyfile_to_trusted_keys $ksk > ../ns5/trusted.conf
35