xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/rsabigexponent/ns2/sign.sh (revision a04395531661c5e8d314125d5ae77d4cbedd5d73)
1#!/bin/sh
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.
16infile=example.db.in
17outfile=example.db.bad
18
19for i in Xexample.+005+51829.key Xexample.+005+51829.private \
20	Xexample.+005+05896.key Xexample.+005+05896.private
21do
22	cp $i `echo $i | sed s/X/K/`
23done
24
25$SIGNER -g -s 20000101000000 -e 20361231235959 -o $zone \
26	$infile Kexample.+005+51829 Kexample.+005+51829 \
27	> /dev/null 2> signer.err || true
28