sign.sh revision 1.1.1.2
1#!/bin/sh -e 2# 3# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4# 5# This Source Code Form is subject to the terms of the Mozilla Public 6# License, v. 2.0. If a copy of the MPL was not distributed with this 7# file, You can obtain one at http://mozilla.org/MPL/2.0/. 8# 9# See the COPYRIGHT file distributed with this work for additional 10# information regarding copyright ownership. 11 12SYSTEMTESTTOP=../.. 13. $SYSTEMTESTTOP/conf.sh 14 15zone=sub.example 16infile=${zone}.db.in 17zonefile=${zone}.db 18 19keyname1=`$KEYGEN -q -a NSEC3RSASHA1 -b 1024 -n zone $zone` 20keyname2=`$KEYGEN -q -a NSEC3RSASHA1 -b 1024 -f KSK -n zone $zone` 21 22cat $infile $keyname1.key $keyname2.key > $zonefile 23 24$SIGNER -o $zone $zonefile > /dev/null 2>&1 25