~kernevil/ubuntu/trusty/bind9/sdlz-hmac-keys

« back to all changes in this revision

Viewing changes to bin/tests/system/dnssec/ns3/sign.sh

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, Matthew Grant, LaMont Jones
  • Date: 2012-10-29 08:37:49 UTC
  • mfrom: (1.9.2)
  • Revision ID: package-import@ubuntu.com-20121029083749-r9inpzl0yuj9xdlu
Tags: 1:9.8.4.dfsg-1
[Matthew Grant]

* Turn off dlopen as it was causing test compile failures.
* Add missing library .postrm files for debhelper

[LaMont Jones]

* New upstream version
* soname fixup
* Ack NMUs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
#
3
 
# Copyright (C) 2004, 2006-2011  Internet Systems Consortium, Inc. ("ISC")
 
3
# Copyright (C) 2004, 2006-2012  Internet Systems Consortium, Inc. ("ISC")
4
4
# Copyright (C) 2000-2002  Internet Software Consortium.
5
5
#
6
6
# Permission to use, copy, modify, and/or distribute this software for any
15
15
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
# PERFORMANCE OF THIS SOFTWARE.
17
17
 
18
 
# $Id: sign.sh,v 1.32.162.8 2011-05-19 04:42:51 each Exp $
 
18
# $Id$
19
19
 
20
20
SYSTEMTESTTOP=../..
21
21
. $SYSTEMTESTTOP/conf.sh
271
271
kskname=`$KEYGEN -q -r $RANDFILE -fk $zone`
272
272
zskname=`$KEYGEN -q -r $RANDFILE $zone`
273
273
cat $infile $kskname.key $zskname.key >$zonefile
274
 
$SIGNER -P -r $RANDFILE -o $zone -s -3h -e +1h $zonefile > /dev/null 2>&1
 
274
$SIGNER -P -r $RANDFILE -o $zone -s -1d -e +1h $zonefile > /dev/null 2>&1
275
275
rm -f $kskname.* $zskname.*
276
276
 
277
277
#
350
350
zskname=`$KEYGEN -q -r $RANDFILE -f KSK $zone`
351
351
cp $infile $zonefile
352
352
$SIGNER -S -r $RANDFILE -e now+1mi -o $zone $zonefile > /dev/null 2>&1
353
 
rm -f ${zskname}.private ${kskname}.private
 
353
mv -f ${zskname}.private ${zskname}.private.moved
 
354
mv -f ${kskname}.private ${kskname}.private.moved
 
355
 
 
356
#
 
357
# A zone where the signer's name has been forced to uppercase.
 
358
#
 
359
zone="upper.example."
 
360
infile="upper.example.db.in"
 
361
zonefile="upper.example.db"
 
362
lower="upper.example.db.lower"
 
363
signedfile="upper.example.db.signed"
 
364
kskname=`$KEYGEN -q -r $RANDFILE $zone`
 
365
zskname=`$KEYGEN -q -r $RANDFILE -f KSK $zone`
 
366
cp $infile $zonefile
 
367
$SIGNER -P -S -r $RANDFILE -o $zone -f $lower $zonefile > /dev/null 2>&1
 
368
$CHECKZONE -D upper.example $lower 2>&- | \
 
369
        sed '/RRSIG/s/ upper.example. / UPPER.EXAMPLE. /' > $signedfile
 
370
 
 
371
#
 
372
# Check that the signer's name is in lower case when zone name is in
 
373
# upper case.
 
374
#
 
375
zone="LOWER.EXAMPLE."
 
376
infile="lower.example.db.in"
 
377
zonefile="lower.example.db"
 
378
signedfile="lower.example.db.signed"
 
379
kskname=`$KEYGEN -q -r $RANDFILE $zone`
 
380
zskname=`$KEYGEN -q -r $RANDFILE -f KSK $zone`
 
381
cp $infile $zonefile
 
382
$SIGNER -P -S -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1