dnssec-keymgr.html revision 7e71f05d8643aca84914437c900cb716444507e4
199767f8919635c4928607450d9e0abb932109ceToomas Soome - Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
199767f8919635c4928607450d9e0abb932109ceToomas Soome - This Source Code Form is subject to the terms of the Mozilla Public
199767f8919635c4928607450d9e0abb932109ceToomas Soome - License, v. 2.0. If a copy of the MPL was not distributed with this
199767f8919635c4928607450d9e0abb932109ceToomas Soome - file, You can obtain one at http://mozilla.org/MPL/2.0/.
199767f8919635c4928607450d9e0abb932109ceToomas Soome<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
199767f8919635c4928607450d9e0abb932109ceToomas Soome<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
199767f8919635c4928607450d9e0abb932109ceToomas Soome<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
199767f8919635c4928607450d9e0abb932109ceToomas Soome<a name="man.dnssec-keymgr"></a><div class="titlepage"></div>
199767f8919635c4928607450d9e0abb932109ceToomas Soome<p><span class="application">dnssec-keymgr</span> — Ensures correct DNSKEY coverage for a zone based on a defined policy</p>
199767f8919635c4928607450d9e0abb932109ceToomas Soome<div class="cmdsynopsis"><p><code class="command">dnssec-keymgr</code> [<code class="option">-K <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-c <em class="replaceable"><code>file</code></em></code>] [<code class="option">-f</code>] [<code class="option">-k</code>] [<code class="option">-q</code>] [<code class="option">-v</code>] [<code class="option">-z</code>] [<code class="option">-g <em class="replaceable"><code>path</code></em></code>] [<code class="option">-r <em class="replaceable"><code>path</code></em></code>] [<code class="option">-s <em class="replaceable"><code>path</code></em></code>] [zone...]</p></div>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <span class="command"><strong>dnssec-keymgr</strong></span> is a high level Python wrapper
199767f8919635c4928607450d9e0abb932109ceToomas Soome to facilitate the key rollover process for zones handled by
199767f8919635c4928607450d9e0abb932109ceToomas Soome BIND. It uses the BIND commands for manipulating DNSSEC key
199767f8919635c4928607450d9e0abb932109ceToomas Soome metadata: <span class="command"><strong>dnssec-keygen</strong></span> and
199767f8919635c4928607450d9e0abb932109ceToomas Soome <span class="command"><strong>dnssec-settime</strong></span>.
199767f8919635c4928607450d9e0abb932109ceToomas Soome DNSSEC policy can be read from a configuration file (default
199767f8919635c4928607450d9e0abb932109ceToomas Soome <code class="filename">/etc/dnssec-policy.conf</code>), from which the key
199767f8919635c4928607450d9e0abb932109ceToomas Soome parameters, publication and rollover schedule, and desired
199767f8919635c4928607450d9e0abb932109ceToomas Soome coverage duration for any given zone can be determined. This
199767f8919635c4928607450d9e0abb932109ceToomas Soome file may be used to define individual DNSSEC policies on a
199767f8919635c4928607450d9e0abb932109ceToomas Soome per-zone basis, or to set a default policy used for all zones.
199767f8919635c4928607450d9e0abb932109ceToomas Soome When <span class="command"><strong>dnssec-keymgr</strong></span> runs, it examines the DNSSEC
199767f8919635c4928607450d9e0abb932109ceToomas Soome keys for one or more zones, comparing their timing metadata against
199767f8919635c4928607450d9e0abb932109ceToomas Soome the policies for those zones. If key settings do not conform to the
199767f8919635c4928607450d9e0abb932109ceToomas Soome DNSSEC policy (for example, because the policy has been changed),
199767f8919635c4928607450d9e0abb932109ceToomas Soome they are automatically corrected.
199767f8919635c4928607450d9e0abb932109ceToomas Soome A zone policy can specify a duration for which we want to
199767f8919635c4928607450d9e0abb932109ceToomas Soome ensure the key correctness (<code class="option">coverage</code>). It can
199767f8919635c4928607450d9e0abb932109ceToomas Soome also specify a rollover period (<code class="option">roll-period</code>).
199767f8919635c4928607450d9e0abb932109ceToomas Soome If policy indicates that a key should roll over before the
199767f8919635c4928607450d9e0abb932109ceToomas Soome coverage period ends, then a successor key will automatically be
199767f8919635c4928607450d9e0abb932109ceToomas Soome created and added to the end of the key series.
199767f8919635c4928607450d9e0abb932109ceToomas Soome If zones are specified on the command line,
199767f8919635c4928607450d9e0abb932109ceToomas Soome <span class="command"><strong>dnssec-keymgr</strong></span> will examine only those zones.
199767f8919635c4928607450d9e0abb932109ceToomas Soome If a specified zone does not already have keys in place, then
199767f8919635c4928607450d9e0abb932109ceToomas Soome keys will be generated for it according to policy.
199767f8919635c4928607450d9e0abb932109ceToomas Soome If zones are <span class="emphasis"><em>not</em></span> specified on the command
199767f8919635c4928607450d9e0abb932109ceToomas Soome line, then <span class="command"><strong>dnssec-keymgr</strong></span> will search the
199767f8919635c4928607450d9e0abb932109ceToomas Soome key directory (either the current working directory or the directory
199767f8919635c4928607450d9e0abb932109ceToomas Soome set by the <code class="option">-K</code> option), and check the keys for
199767f8919635c4928607450d9e0abb932109ceToomas Soome all the zones represented in the directory.
199767f8919635c4928607450d9e0abb932109ceToomas Soome It is expected that this tool will be run automatically and
199767f8919635c4928607450d9e0abb932109ceToomas Soome unattended (for example, by <span class="command"><strong>cron</strong></span>).
199767f8919635c4928607450d9e0abb932109ceToomas Soome<div class="variablelist"><dl class="variablelist">