xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/chain/ns2/sign.sh (revision 901e7e84758515fbf39dfc064cb0b45ab146d8b0)
1#!/bin/sh -e
2
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# SPDX-License-Identifier: MPL-2.0
6#
7# This Source Code Form is subject to the terms of the Mozilla Public
8# License, v. 2.0.  If a copy of the MPL was not distributed with this
9# file, you can obtain one at https://mozilla.org/MPL/2.0/.
10#
11# See the COPYRIGHT file distributed with this work for additional
12# information regarding copyright ownership.
13
14SYSTEMTESTTOP=../..
15. $SYSTEMTESTTOP/conf.sh
16
17zone=example.
18zonefile=example.db
19signedfile=example.db.signed
20
21ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
22zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
23$SIGNER -S -o $zone -f $signedfile $zonefile > /dev/null
24
25zone=wildcard-secure.example.
26zonefile=wildcard-secure.db
27signedfile=wildcard-secure.example.db.signed
28
29ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
30zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
31$SIGNER -S -o $zone -f $signedfile $zonefile > /dev/null
32
33zone=wildcard-nsec.example.
34zonefile=wildcard.db
35signedfile=wildcard-nsec.example.db.signed
36
37ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
38zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
39$SIGNER -S -o $zone -f $signedfile $zonefile > /dev/null
40
41zone=wildcard-nsec3.example.
42zonefile=wildcard.db
43signedfile=wildcard-nsec3.example.db.signed
44
45ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
46zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
47$SIGNER -S -3 - -H 0 -o $zone -f $signedfile $zonefile > /dev/null
48
49zone=wildcard-nsec3-optout.example.
50zonefile=wildcard.db
51signedfile=wildcard-nsec3-optout.example.db.signed
52
53ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
54zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
55$SIGNER -S -3 - -H 0 -A -o $zone -f $signedfile $zonefile > /dev/null
56