sign.sh revision 1.1.1.8
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
14. ../../conf.sh
15
16zone=example.
17zonefile=example.db
18signedfile=example.db.signed
19
20ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
21zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
22$SIGNER -S -o $zone -f $signedfile $zonefile >/dev/null
23
24zone=wildcard-secure.example.
25zonefile=wildcard-secure.db
26signedfile=wildcard-secure.example.db.signed
27
28ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
29zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
30$SIGNER -S -o $zone -f $signedfile $zonefile >/dev/null
31
32zone=wildcard-nsec.example.
33zonefile=wildcard.db
34signedfile=wildcard-nsec.example.db.signed
35
36ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
37zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
38$SIGNER -S -o $zone -f $signedfile $zonefile >/dev/null
39
40zone=wildcard-nsec3.example.
41zonefile=wildcard.db
42signedfile=wildcard-nsec3.example.db.signed
43
44ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
45zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
46$SIGNER -S -3 - -H 0 -o $zone -f $signedfile $zonefile >/dev/null
47
48zone=wildcard-nsec3-optout.example.
49zonefile=wildcard.db
50signedfile=wildcard-nsec3-optout.example.db.signed
51
52ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} -fk $zone)
53zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -b ${DEFAULT_BITS} $zone)
54$SIGNER -S -3 - -H 0 -A -o $zone -f $signedfile $zonefile >/dev/null
55