Blame bin/tests/system/filter-aaaa/ns1/sign.sh
|
Packit |
5ce601 |
#!/bin/sh
|
|
Packit |
5ce601 |
#
|
|
Packit |
5ce601 |
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
Packit |
5ce601 |
#
|
|
Packit |
5ce601 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
5ce601 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit Service |
704ed8 |
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
Packit |
5ce601 |
#
|
|
Packit |
5ce601 |
# See the COPYRIGHT file distributed with this work for additional
|
|
Packit |
5ce601 |
# information regarding copyright ownership.
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
SYSTEMTESTTOP=../..
|
|
Packit |
5ce601 |
. $SYSTEMTESTTOP/conf.sh
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
SYSTESTDIR=filter-aaaa
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
dlvsets=
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
zone=signed.
|
|
Packit |
5ce601 |
infile=signed.db.in
|
|
Packit |
5ce601 |
zonefile=signed.db.signed
|
|
Packit |
5ce601 |
outfile=signed.db.signed
|
|
Packit |
5ce601 |
|
|
Packit Service |
d3afd5 |
keyname1=`$KEYGEN -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
|
|
Packit Service |
d3afd5 |
keyname2=`$KEYGEN -f KSK -r $RANDFILE -a DSA -b 768 -n zone $zone 2> /dev/null`
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
cat $infile $keyname1.key $keyname2.key >$zonefile
|
|
Packit |
5ce601 |
|
|
Packit |
5ce601 |
$SIGNER -r $RANDFILE -o $zone -f $outfile $zonefile > /dev/null 2> signer.err || cat signer.err
|
|
Packit |
5ce601 |
echo_i "signed $zone"
|