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 16# 17# We use rsasha256 here to get a ZSK + KSK that don't fit in 512 bytes. 18# 19zone=ds.example.net 20zonefile="${zone}.db" 21infile="${zonefile}.in" 22cp $infile $zonefile 23ksk=$($KEYGEN -q -a rsasha256 -fk $zone) 24zsk=$($KEYGEN -q -a rsasha256 -b 2048 $zone) 25cat $ksk.key $zsk.key >>$zonefile 26$SIGNER -P -o $zone $zonefile >/dev/null 27 28zone=example.net 29zonefile="${zone}.db" 30infile="${zonefile}.in" 31cp $infile $zonefile 32ksk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} -fk $zone) 33zsk=$($KEYGEN -q -a ${DEFAULT_ALGORITHM} $zone) 34cat $ksk.key $zsk.key dsset-ds.example.net. >>$zonefile 35$SIGNER -P -o $zone $zonefile >/dev/null 36 37# Configure a static key to be used by delv 38keyfile_to_static_ds $ksk >../ns5/trusted.conf 39