xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/inline/ns8/sign.sh (revision d90047b5d07facf36e6c01dcc0bded8997ce9cc2)
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
15for zone in example01.com example02.com example03.com example04.com \
16	    example05.com example06.com example07.com example08.com \
17	    example09.com example10.com example11.com example12.com \
18	    example13.com example14.com example15.com example16.com
19do
20  rm -f K${zone}.+*+*.key
21  rm -f K${zone}.+*+*.private
22  keyname=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -n zone $zone`
23  keyname=`$KEYGEN -q -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -n zone -f KSK $zone`
24  cp example.com.db.in ${zone}.db
25  $SIGNER -S -T 3600 -O raw -o ${zone} ${zone}.db > /dev/null 2>&1
26done
27