1 1.1 christos #!/bin/sh -e 2 1.1 christos 3 1.1 christos # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4 1.1 christos # 5 1.1 christos # SPDX-License-Identifier: MPL-2.0 6 1.1 christos # 7 1.1 christos # This Source Code Form is subject to the terms of the Mozilla Public 8 1.1 christos # License, v. 2.0. If a copy of the MPL was not distributed with this 9 1.1 christos # file, you can obtain one at https://mozilla.org/MPL/2.0/. 10 1.1 christos # 11 1.1 christos # See the COPYRIGHT file distributed with this work for additional 12 1.1 christos # information regarding copyright ownership. 13 1.1 christos 14 1.1 christos # shellcheck source=conf.sh 15 1.1 christos . ../../conf.sh 16 1.1 christos 17 1.1 christos set -e 18 1.1 christos 19 1.1 christos zone=. 20 1.1 christos infile=root.db.in 21 1.1 christos zonefile=root.db 22 1.1 christos 23 1.1 christos echo_i "ns1/setup.sh" 24 1.1 christos 25 1.1 christos ksk=$("$KEYGEN" -q -fk -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone "$zone") 26 1.1 christos zsk=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone "$zone") 27 1.1 christos 28 1.1 christos cat "$infile" "$ksk.key" "$zsk.key" >"$zonefile" 29 1.1 christos "$SIGNER" -g -o "$zone" "$zonefile" >/dev/null 2>&1 30 1.1 christos 31 1.1 christos # Configure the resolving server with a static key. 32 1.1 christos keyfile_to_static_ds "$ksk" >trusted.conf 33 1.1 christos cp trusted.conf ../ns3/trusted.conf 34 1.1.1.2 christos cp trusted.conf ../ns9/trusted.conf 35