Annotation of src/external/mpl/bind/dist/bin/tests/system/dnssec/ns1/sign.sh, Revision 1.1.1.1.2.3
1.1.1.1.2.2 pgoyette 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:
12: SYSTEMTESTTOP=../..
13: . $SYSTEMTESTTOP/conf.sh
14:
15: zone=.
16: infile=root.db.in
17: zonefile=root.db
18:
19: (cd ../ns2 && $SHELL sign.sh )
20: (cd ../ns6 && $SHELL sign.sh )
21: (cd ../ns7 && $SHELL sign.sh )
22:
23: cp ../ns2/dsset-example$TP .
24: cp ../ns2/dsset-dlv$TP .
25: cp ../ns2/dsset-in-addr.arpa$TP .
26:
27: grep "8 [12] " ../ns2/dsset-algroll$TP > dsset-algroll$TP
28: cp ../ns6/dsset-optout-tld$TP .
29:
1.1.1.1.2.3! pgoyette 30: keyname=`$KEYGEN -q -a RSAMD5 -b 1024 -n zone $zone`
1.1.1.1.2.2 pgoyette 31:
32: cat $infile $keyname.key > $zonefile
33:
1.1.1.1.2.3! pgoyette 34: $SIGNER -P -g -o $zone $zonefile > /dev/null
1.1.1.1.2.2 pgoyette 35:
36: # Configure the resolving server with a trusted key.
37: keyfile_to_trusted_keys $keyname > trusted.conf
38: cp trusted.conf ../ns2/trusted.conf
39: cp trusted.conf ../ns3/trusted.conf
40: cp trusted.conf ../ns4/trusted.conf
41: cp trusted.conf ../ns6/trusted.conf
42: cp trusted.conf ../ns7/trusted.conf
43:
44: # ...or with a managed key.
45: keyfile_to_managed_keys $keyname > managed.conf
46: cp managed.conf ../ns4/managed.conf
47:
48: #
49: # Save keyid for managed key id test.
50: #
51: keyid=`expr $keyname : 'K.+001+\(.*\)'`
52: keyid=`expr $keyid + 0`
53: echo "$keyid" > managed.key.id
CVSweb <webmaster@jp.NetBSD.org>