e334405421979688f2d838805ac67ee47bd62976Mark Andrews#!/bin/sh -e
e334405421979688f2d838805ac67ee47bd62976Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2010, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark 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
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater# $Id: sign.sh,v 1.3 2010/12/08 23:51:56 tbox Exp $
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark AndrewsSYSTEMTESTTOP=../..
e334405421979688f2d838805ac67ee47bd62976Mark Andrews. $SYSTEMTESTTOP/conf.sh
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrewszone=signed
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsinfile=example.db
e334405421979688f2d838805ac67ee47bd62976Mark Andrewszonefile=signed.db
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrewskey1=`$KEYGEN -q -r $RANDFILE $zone`
e334405421979688f2d838805ac67ee47bd62976Mark Andrewskey2=`$KEYGEN -q -r $RANDFILE -fk $zone`
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrewscat $infile $key1.key $key2.key > $zonefile
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrews$SIGNER -P -g -r $RANDFILE -o $zone $zonefile > /dev/null