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 # shellcheck source=conf.sh 15 . ../../conf.sh 16 17 set -e 18 19 # Sign child zones (served by ns3). 20 (cd ../ns3 && $SHELL sign.sh) 21 22 # The "example." zone. 23 zone=example. 24 infile=example.db.in 25 zonefile=example.db 26 27 # Get the DS records for the "example." zone. 28 for subdomain in bogus badds secure; do 29 cp "../ns3/dsset-$subdomain.example." . 30 done 31 32 # Sign the "example." zone. 33 keyname1=$("$KEYGEN" -q -a "$ALTERNATIVE_ALGORITHM" -b "$ALTERNATIVE_BITS" -f KSK "$zone") 34 keyname2=$("$KEYGEN" -q -a "$ALTERNATIVE_ALGORITHM" -b "$ALTERNATIVE_BITS" "$zone") 35 36 cat "$infile" "$keyname1.key" "$keyname2.key" >"$zonefile" 37 38 "$SIGNER" -g -o "$zone" -k "$keyname1" "$zonefile" "$keyname2" >/dev/null 2>&1 39