dnssec-settime.docbook revision c6f4972c745f8903aba6dcca41f17a44c473db66
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein [<!ENTITY mdash "—">]>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews - Copyright (C) 2009, 2010 Internet Systems Consortium, Inc. ("ISC")
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - Permission to use, copy, modify, and/or distribute this software for any
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - purpose with or without fee is hereby granted, provided that the above
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - copyright notice and this permission notice appear in all copies.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<!-- $Id: dnssec-settime.docbook,v 1.11 2010/08/16 22:21:06 marka Exp $ -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refentryinfo>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </refentryinfo>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refentrytitle><application>dnssec-settime</application></refentrytitle>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refnamediv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refname><application>dnssec-settime</application></refname>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refpurpose>Set the key timing metadata for a DNSSEC key</refpurpose>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </refnamediv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </copyright>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <refsynopsisdiv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <cmdsynopsis>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg><option>-A <replaceable class="parameter">date/offset</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <arg><option>-R <replaceable class="parameter">date/offset</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg><option>-I <replaceable class="parameter">date/offset</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg><option>-v <replaceable class="parameter">level</replaceable></option></arg>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <arg><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </cmdsynopsis>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </refsynopsisdiv>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein reads a DNSSEC private key file and sets the key timing metadata
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson as specified by the <option>-P</option>, <option>-A</option>,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <option>-R</option>, <option>-I</option>, and <option>-D</option>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein options. The metadata can then be used by
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <command>dnssec-signzone</command> or other signing software to
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson determine when a key is to be published, whether it should be
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson used for signing a zone, etc.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein If none of these options is set on the command line,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein then <command>dnssec-settime</command> simply prints the key timing
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson metadata already stored in the key.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson When key metadata fields are changed, both files of a key
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein pair (<filename>Knnnn.+aaa+iiiii.key</filename> and
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <filename>Knnnn.+aaa+iiiii.private</filename>) are regenerated.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Metadata fields are stored in the private file. A human-readable
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson description of the metadata is also placed in comments in the key
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <variablelist>
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Force an update of an old-format key with no metadata fields.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Without this option, <command>dnssec-settime</command> will
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein fail when attempting to update a legacy key. With this option,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein the key will be recreated in the new format, but with the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein original key data retained. The key's creation date will be
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein set to the present time.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-K <replaceable class="parameter">directory</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the directory in which the key files are to reside.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Emit usage message and exit.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-v <replaceable class="parameter">level</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the debugging level.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-E <replaceable class="parameter">engine</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Use the given OpenSSL engine. When compiled with PKCS#11 support
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein it defaults to pkcs11; the empty name resets it to no engine.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </variablelist>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein If the argument begins with a '+' or '-', it is interpreted as
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein an offset from the present time. For convenience, if such an offset
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein is followed by one of the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi',
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein then the offset is computed in years (defined as 365 24-hour days,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ignoring leap years), months (defined as 30 24-hour days), weeks,
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein days, hours, or minutes, respectively. Without a suffix, the offset
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein is computed in seconds. To unset a date, use 'none'.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <variablelist>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-P <replaceable class="parameter">date/offset</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the date on which a key is to be published to the zone.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein After that date, the key will be included in the zone but will
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein not be used to sign it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-A <replaceable class="parameter">date/offset</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the date on which the key is to be activated. After that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein date, the key will be included in the zone and used to sign
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-R <replaceable class="parameter">date/offset</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the date on which the key is to be revoked. After that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein date, the key will be flagged as revoked. It will be included
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein in the zone and will be used to sign it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-I <replaceable class="parameter">date/offset</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the date on which the key is to be retired. After that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein date, the key will still be included in the zone, but it
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein will not be used to sign it.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-D <replaceable class="parameter">date/offset</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Sets the date on which the key is to be deleted. After that
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein date, the key will no longer be included in the zone. (It
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein may remain in the key repository, however.)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <varlistentry>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <term>-S <replaceable class="parameter">predecessor key</replaceable></term>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein Select a key for which the key being modified will be an
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein explicit successor. The name, algorithm, size, and type of the
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein predecessor key must exactly match those of the key being
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein modified. The activation date of the successor key will be set