f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrews#!/bin/sh -e
a134177ed9f82189504191d90f3ed9e97c2b47cbTinderbox User#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 2010, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrews
28a8f5b0de57d269cf2845c69cb6abe18cbd3b3aMark Andrews# $Id: sign.sh,v 1.3 2010/12/17 00:57:39 marka Exp $
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrews
d10099d8663f4a4b21219f0c4bcc4f2b1ca1d877Bob HalleySYSTEMTESTTOP=../..
d10099d8663f4a4b21219f0c4bcc4f2b1ca1d877Bob Halley. $SYSTEMTESTTOP/conf.sh
d10099d8663f4a4b21219f0c4bcc4f2b1ca1d877Bob Halley
d10099d8663f4a4b21219f0c4bcc4f2b1ca1d877Bob Halleyzone=sub.example
d10099d8663f4a4b21219f0c4bcc4f2b1ca1d877Bob Halleyinfile=${zone}.db.in
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrewszonefile=${zone}.db
854d0238dbc2908490197984b3b9d558008a53dfMark Andrews
854d0238dbc2908490197984b3b9d558008a53dfMark Andrewskeyname1=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 768 -n zone $zone`
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrewskeyname2=`$KEYGEN -q -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -f KSK -n zone $zone`
6324997211a5e2d82528dcde98e8981190a35faeMichael Graff
6324997211a5e2d82528dcde98e8981190a35faeMichael Graffcat $infile $keyname1.key $keyname2.key > $zonefile
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff
6d12fdf96621801e80f3f4c2a8a569fe48766a20David Lawrence$SIGNER -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
f427e7850928d15ffc37b1f68c60588995c9b318Mark Andrews