c88b4680d9c97d087edc8b226f489798db085341Tinderbox User# Copyright (C) 2010, 2012, 2014, 2016, 2017 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/.
d48730a446ffffa8d75462a4abefce030425fa64Mark Andrews# $Id: keygen.sh,v 1.2 2010/11/16 06:46:44 marka Exp $
d48730a446ffffa8d75462a4abefce030425fa64Mark Andrews$SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecickicat $ksk.key $zsk.key dsset-ds.example.net$TP >> $zonefile
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrews$SIGNER -P -r $RANDFILE -o $zone $zonefile > /dev/null 2>&1
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrews# Configure a trusted key statement (used by delve)
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrewslocal ($dn, $class, $type, $flags, $proto, $alg, @rest) = split;
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrewslocal $key = join("", @rest);
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrewstrusted-keys {
d1cacbb37474b0cbee6c1ddd05d27f731b2b43baMark Andrews "$dn" $flags $proto $alg "$key";