keygen.sh revision ac9072210cea5283e554f1787876b647a08fda96
#
# Copyright (C) 2010, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id: keygen.sh,v 1.2 2010/11/16 06:46:44 marka Exp $
SYSTEMTESTTOP=../..
zonefile="${zone}.db"
infile="${zonefile}.in"
zonefile="${zone}.db"
infile="${zonefile}.in"
# Configure a trusted key statement (used by delve)
local ($dn, $class, $type, $flags, $proto, $alg, @rest) = split;
local $key = join("", @rest);
print <<EOF
trusted-keys {
"$dn" $flags $proto $alg "$key";
};
EOF