[BACK]Return to keygen.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / bin / tests / system / resolver / ns6

Annotation of src/external/mpl/bind/dist/bin/tests/system/resolver/ns6/keygen.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=ds.example.net
                     16: zonefile="${zone}.db"
                     17: infile="${zonefile}.in"
                     18: cp $infile $zonefile
1.1.1.1.2.3! pgoyette   19: ksk=`$KEYGEN -q -a rsasha256 -fk $zone`
        !            20: zsk=`$KEYGEN -q -a rsasha256 -b 2048 $zone`
1.1.1.1.2.2  pgoyette   21: cat $ksk.key $zsk.key >> $zonefile
1.1.1.1.2.3! pgoyette   22: $SIGNER -P -o $zone $zonefile > /dev/null 2>&1
1.1.1.1.2.2  pgoyette   23:
                     24: zone=example.net
                     25: zonefile="${zone}.db"
                     26: infile="${zonefile}.in"
                     27: cp $infile $zonefile
1.1.1.1.2.3! pgoyette   28: ksk=`$KEYGEN -q -a rsasha256 -fk $zone`
        !            29: zsk=`$KEYGEN -q -a rsasha256 $zone`
1.1.1.1.2.2  pgoyette   30: cat $ksk.key $zsk.key dsset-ds.example.net$TP >> $zonefile
1.1.1.1.2.3! pgoyette   31: $SIGNER -P -o $zone $zonefile > /dev/null 2>&1
1.1.1.1.2.2  pgoyette   32:
                     33: # Configure a trusted key statement (used by delv)
                     34: keyfile_to_trusted_keys $ksk > ../ns5/trusted.conf

CVSweb <webmaster@jp.NetBSD.org>