sign.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
1633838b8255282d10af15c5c84cee5a51466712Bob Halley#!/bin/sh -e
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Copyright (C) 2010-2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# This Source Code Form is subject to the terms of the Mozilla Public
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# License, v. 2.0. If a copy of the MPL was not distributed with this
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# file, You can obtain one at http://mozilla.org/MPL/2.0/.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence
dafcb997e390efa4423883dafd100c975c4095d6Mark AndrewsSYSTEMTESTTOP=../..
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews. $SYSTEMTESTTOP/conf.sh
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewszone=nsec3param.test.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewsinfile=nsec3param.test.db.in
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrewszonefile=nsec3param.test.db
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
1633838b8255282d10af15c5c84cee5a51466712Bob Halleykeyname1=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone -f KSK $zone`
94e25967cda41b886e33ec254b917d21df21a187Bob Halleykeyname2=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone`
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeincat $infile $keyname1.key $keyname2.key >$zonefile
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence$SIGNER -P -3 - -H 1 -r $RANDFILE -o $zone -k $keyname1 $zonefile $keyname2 > /dev/null
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halleyzone=dnskey.test.
94e25967cda41b886e33ec254b917d21df21a187Bob Halleyinfile=dnskey.test.db.in
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrencezonefile=dnskey.test.db
70ec7dd74103fa9e92a6d56a0e3b0fc30e17af0dMark Andrews
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencekeyname1=`$KEYGEN -q -r $RANDFILE -a RSASHA1 -b 1024 -n zone -f KSK $zone`
94e25967cda41b886e33ec254b917d21df21a187Bob Halleykeyname2=`$KEYGEN -q -r $RANDFILE -a RSASHA1 -b 1024 -n zone $zone`
6e3a8256eed85f6704861d269ccfb35bdaeed5ffDavid Lawrence
6e3a8256eed85f6704861d269ccfb35bdaeed5ffDavid Lawrencecat $infile $keyname1.key $keyname2.key >$zonefile
df0f58959ed82a2a43ca8d816ce9592541df9f2fMark Andrews
33f87146a856eb6c3dfd55a8ee9c173c94f82150Andreas Gustafsson$SIGNER -P -r $RANDFILE -o $zone -k $keyname1 $zonefile $keyname2 > /dev/null
4b87939256ede703385e9cab92d3c58d03c31098Mark Andrews