xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/tsiggss/setup.sh (revision 4d342c046e3288fb5a1edcd33cfec48c41c80664)
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
15$SHELL clean.sh
16
17copy_setports ns1/named.conf.in ns1/named.conf
18
19key=`$KEYGEN -Cq -K ns1 -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -n HOST -T KEY key.example.nil.`
20cat ns1/example.nil.db.in ns1/${key}.key > ns1/example.nil.db
21