xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/eddsa/ns2/sign.sh (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
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 https://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=example.com.
16zonefile=example.com.db
17starttime=20150729220000
18endtime=20150819220000
19
20for i in Xexample.com.+015+03613.key Xexample.com.+015+03613.private \
21	 Xexample.com.+015+35217.key Xexample.com.+015+35217.private \
22	 Xexample.com.+016+09713.key Xexample.com.+016+09713.private \
23	 Xexample.com.+016+38353.key Xexample.com.+016+38353.private
24do
25	cp $i `echo $i | sed s/X/K/`
26done
27
28$SIGNER -P -z -s $starttime -e $endtime -o $zone $zonefile > /dev/null 2> signer.err || cat signer.err
29