0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2010, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrewskey1=`$KEYGEN -q -r $RANDFILE -a ECCGOST -n zone $zone`
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrewskey2=`$KEYGEN -q -r $RANDFILE -a ECCGOST -n zone -f KSK $zone`
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews$SIGNER -P -g -r $RANDFILE -o $zone $zonefile > /dev/null 2> signer.err || cat signer.err
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrews# Configure the resolving server with a trusted key.
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrewslocal ($dn, $class, $type, $flags, $proto, $alg, @rest) = split;
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrewslocal $key = join("", @rest);
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrewstrusted-keys {
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrews "$dn" $flags $proto $alg "$key";