2014-12-04 07:01:52 +11:00
|
|
|
#!/bin/sh
|
2021-06-03 08:37:05 +02:00
|
|
|
|
2018-02-22 15:10:37 -08:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2014-12-04 07:01:52 +11:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
#
|
2014-12-04 07:01:52 +11:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
#
|
2014-12-04 07:01:52 +11:00
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
2020-07-21 12:12:59 +02:00
|
|
|
. ../../conf.sh
|
2014-12-04 07:01:52 +11:00
|
|
|
|
2018-02-24 00:48:50 -08:00
|
|
|
SYSTESTDIR=legacy
|
|
|
|
|
2018-02-20 15:43:27 -08:00
|
|
|
echo_i "sign edns512"
|
2014-12-04 07:01:52 +11:00
|
|
|
|
|
|
|
zone=edns512
|
|
|
|
infile=edns512.db.in
|
|
|
|
zonefile=edns512.db
|
|
|
|
outfile=edns512.db.signed
|
|
|
|
|
2023-06-07 16:00:00 +02:00
|
|
|
keyname1=`$KEYGEN -a RSASHA512 -b 4096 -n zone $zone 2> /dev/null`
|
2018-04-24 16:01:23 +02:00
|
|
|
keyname2=`$KEYGEN -f KSK -a RSASHA512 -b 4096 -n zone $zone 2> /dev/null`
|
2014-12-04 07:01:52 +11:00
|
|
|
|
|
|
|
cat $infile $keyname1.key $keyname2.key >$zonefile
|
|
|
|
|
2018-04-24 16:01:23 +02:00
|
|
|
$SIGNER -g -o $zone -f $outfile -e +30y $zonefile > /dev/null 2> signer.err || cat signer.err
|