Home | History | Annotate | Line # | Download | only in ns7
      1      1.1  christos #!/bin/sh
      2  1.1.1.5  christos 
      3      1.1  christos # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      4      1.1  christos #
      5  1.1.1.5  christos # SPDX-License-Identifier: MPL-2.0
      6  1.1.1.5  christos #
      7      1.1  christos # This Source Code Form is subject to the terms of the Mozilla Public
      8  1.1.1.5  christos # License, v. 2.0.  If a copy of the MPL was not distributed with this
      9  1.1.1.4  christos # file, you can obtain one at https://mozilla.org/MPL/2.0/.
     10      1.1  christos #
     11      1.1  christos # See the COPYRIGHT file distributed with this work for additional
     12      1.1  christos # information regarding copyright ownership.
     13      1.1  christos 
     14  1.1.1.6  christos . ../../conf.sh
     15      1.1  christos 
     16      1.1  christos echo_i "sign edns512-notcp"
     17      1.1  christos 
     18      1.1  christos zone=edns512-notcp
     19      1.1  christos infile=edns512-notcp.db.in
     20      1.1  christos zonefile=edns512-notcp.db
     21      1.1  christos outfile=edns512-notcp.db.signed
     22      1.1  christos 
     23  1.1.1.6  christos keyname1=$($KEYGEN -a RSASHA512 -b 4096 -n zone $zone 2>/dev/null)
     24  1.1.1.6  christos keyname2=$($KEYGEN -f KSK -a RSASHA512 -b 4096 -n zone $zone 2>/dev/null)
     25      1.1  christos 
     26      1.1  christos cat $infile $keyname1.key $keyname2.key >$zonefile
     27      1.1  christos 
     28  1.1.1.6  christos $SIGNER -g -o $zone -f $outfile -e +30y $zonefile >/dev/null 2>signer.err || cat signer.err
     29      1.1  christos 
     30  1.1.1.6  christos keyfile_to_static_ds $keyname2 >trusted.conf
     31      1.1  christos cp trusted.conf ../ns1
     32