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 zone=. 20 infile=root.db.in 21 zonefile=root.db 22 23 echo_i "ns1/setup.sh" 24 25 ksk=$("$KEYGEN" -q -fk -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone "$zone") 26 zsk=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone "$zone") 27 28 cat "$infile" "$ksk.key" "$zsk.key" >"$zonefile" 29 "$SIGNER" -g -o "$zone" "$zonefile" >/dev/null 2>&1 30 31 # Configure the resolving server with a static key. 32 keyfile_to_static_ds "$ksk" >trusted.conf 33 cp trusted.conf ../ns3/trusted.conf 34 cp trusted.conf ../ns9/trusted.conf 35