7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews#!/bin/sh
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 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/.
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews# $Id: sign.sh,v 1.3 2011/05/26 23:47:28 tbox Exp $
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews
7865ea9545f28f12f046b32d24c989e8441b9812Mark AndrewsSYSTEMTESTTOP=../..
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews. $SYSTEMTESTTOP/conf.sh
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewszone=example.
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewsinfile=example.db.in
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewsoutfile=example.db.bad
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewsfor i in Xexample.+005+51829.key Xexample.+005+51829.private \
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews Xexample.+005+05896.key Xexample.+005+05896.private
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewsdo
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews cp $i `echo $i | sed s/X/K/`
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrewsdone
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews$SIGNER -r $RANDFILE -g -s 20000101000000 -e 20361231235959 -o $zone \
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews $infile Kexample.+005+51829 Kexample.+005+51829 \
7865ea9545f28f12f046b32d24c989e8441b9812Mark Andrews > /dev/null 2> signer.err