xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/legacy/ns7/sign.sh (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1#!/bin/sh
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12SYSTEMTESTTOP=../..
13. $SYSTEMTESTTOP/conf.sh
14
15SYSTESTDIR=legacy
16
17echo_i "sign edns512-notcp"
18
19zone=edns512-notcp
20infile=edns512-notcp.db.in
21zonefile=edns512-notcp.db
22outfile=edns512-notcp.db.signed
23
24keyname1=`$KEYGEN -a RSASHA512 -b 4096 -n zone $zone 2> /dev/null`
25keyname2=`$KEYGEN -f KSK -a RSASHA512 -b 4096 -n zone $zone 2> /dev/null`
26
27cat $infile $keyname1.key $keyname2.key >$zonefile
28
29$SIGNER -g -o $zone -f $outfile -e +30y $zonefile > /dev/null 2> signer.err || cat signer.err
30
31keyfile_to_static_ds $keyname2 > trusted.conf
32cp trusted.conf ../ns1
33