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