Home | History | Annotate | Line # | Download | only in ns1
      1 #!/bin/sh -e
      2 
      3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      4 #
      5 # SPDX-License-Identifier: MPL-2.0
      6 #
      7 # This Source Code Form is subject to the terms of the Mozilla Public
      8 # License, v. 2.0.  If a copy of the MPL was not distributed with this
      9 # file, you can obtain one at https://mozilla.org/MPL/2.0/.
     10 #
     11 # See the COPYRIGHT file distributed with this work for additional
     12 # information regarding copyright ownership.
     13 
     14 . ../../conf.sh
     15 
     16 zone=tc-test-signed
     17 infile=tc-test-signed.db.in
     18 zonefile=tc-test-signed.db
     19 
     20 # The signing algorithm and key sizes used here are NOT arbitrary - they have
     21 # been carefully chosen to ensure that the signed referral response checked in
     22 # the test will be around 512 bytes in size with glue records excluded.  Please
     23 # keep this in mind when updating signing algorithms used in system tests.
     24 keyname=$($KEYGEN -q -a RSASHA256 -b 2048 -n zone $zone)
     25 cat "$infile" "$keyname.key" >"$zonefile"
     26 
     27 $SIGNER -P -o $zone $zonefile >/dev/null
     28