man.dnssec-settime.html revision d9c707589ade5d69fb59b6837555adc4cd24d34f
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<!--
0d26a2bd71224b954baab529bbadc4d676c35b95slive - Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
e942c741056732f50da2074b36fe59805d370650slive - Copyright (C) 2000-2003 Internet Software Consortium.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd -
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - Permission to use, copy, modify, and/or distribute this software for any
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - purpose with or without fee is hereby granted, provided that the above
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - copyright notice and this permission notice appear in all copies.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd -
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd - PERFORMANCE OF THIS SOFTWARE.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd-->
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<!-- $Id: man.dnssec-settime.html,v 1.67 2011/05/09 01:14:45 tbox Exp $ -->
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<html>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<head>
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7db9f691a00ead175b03335457ca296a33ddf31bnd<title>dnssec-settime</title>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<link rel="prev" href="man.dnssec-revoke.html" title="dnssec-revoke">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<link rel="next" href="man.dnssec-signzone.html" title="dnssec-signzone">
0d26a2bd71224b954baab529bbadc4d676c35b95slive</head>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<div class="navheader">
e0cbf588b6280e9857b9d8756077d513e13a12b3slive<table width="100%" summary="Navigation header">
e0cbf588b6280e9857b9d8756077d513e13a12b3slive<tr><th colspan="3" align="center"><span class="application">dnssec-settime</span></th></tr>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<tr>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<td width="20%" align="left">
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<a accesskey="p" href="man.dnssec-revoke.html">Prev</a>�</td>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<th width="60%" align="center">Manual pages</th>
f9f056cc901d76ce30456457a4f15fec1a42e8a7rbowen<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-signzone.html">Next</a>
f9f056cc901d76ce30456457a4f15fec1a42e8a7rbowen</td>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen</tr>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen</table>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<hr>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen</div>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<div class="refentry" lang="en">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<a name="man.dnssec-settime"></a><div class="titlepage"></div>
0d26a2bd71224b954baab529bbadc4d676c35b95slive<div class="refnamediv">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<h2>Name</h2>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<p><span class="application">dnssec-settime</span> &#8212; Set the key timing metadata for a DNSSEC key</p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen</div>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<div class="refsynopsisdiv">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<h2>Synopsis</h2>
d5d6e50ca44fba6138129059cc6ad3e544da31cfslive<div class="cmdsynopsis"><p><code class="command">dnssec-settime</code> [<code class="option">-f</code>] [<code class="option">-K <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-L <em class="replaceable"><code>ttl</code></em></code>] [<code class="option">-P <em class="replaceable"><code>date/offset</code></em></code>] [<code class="option">-A <em class="replaceable"><code>date/offset</code></em></code>] [<code class="option">-R <em class="replaceable"><code>date/offset</code></em></code>] [<code class="option">-I <em class="replaceable"><code>date/offset</code></em></code>] [<code class="option">-D <em class="replaceable"><code>date/offset</code></em></code>] [<code class="option">-h</code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] [<code class="option">-E <em class="replaceable"><code>engine</code></em></code>] {keyfile}</p></div>
d5d6e50ca44fba6138129059cc6ad3e544da31cfslive</div>
d5d6e50ca44fba6138129059cc6ad3e544da31cfslive<div class="refsect1" lang="en">
d5d6e50ca44fba6138129059cc6ad3e544da31cfslive<a name="id2616501"></a><h2>DESCRIPTION</h2>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<p><span><strong class="command">dnssec-settime</strong></span>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen reads a DNSSEC private key file and sets the key timing metadata
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen as specified by the <code class="option">-P</code>, <code class="option">-A</code>,
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen <code class="option">-R</code>, <code class="option">-I</code>, and <code class="option">-D</code>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen options. The metadata can then be used by
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen <span><strong class="command">dnssec-signzone</strong></span> or other signing software to
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen determine when a key is to be published, whether it should be
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen used for signing a zone, etc.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen If none of these options is set on the command line,
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen then <span><strong class="command">dnssec-settime</strong></span> simply prints the key timing
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen metadata already stored in the key.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen When key metadata fields are changed, both files of a key
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen pair (<code class="filename">Knnnn.+aaa+iiiii.key</code> and
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen <code class="filename">Knnnn.+aaa+iiiii.private</code>) are regenerated.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Metadata fields are stored in the private file. A human-readable
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen description of the metadata is also placed in comments in the key
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen file.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen</div>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<div class="refsect1" lang="en">
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<a name="id2616560"></a><h2>OPTIONS</h2>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<div class="variablelist"><dl>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dt><span class="term">-f</span></dt>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dd><p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Force an update of an old-format key with no metadata fields.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Without this option, <span><strong class="command">dnssec-settime</strong></span> will
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen fail when attempting to update a legacy key. With this option,
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen the key will be recreated in the new format, but with the
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen original key data retained. The key's creation date will be
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen set to the present time. If no other values are specified,
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen then the key's publication and activation dates will also
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen be set to the present time.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p></dd>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dd><p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Sets the directory in which the key files are to reside.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p></dd>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dt><span class="term">-L <em class="replaceable"><code>ttl</code></em></span></dt>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dd><p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Sets the default TTL to use for this key when it is converted
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen into a DNSKEY RR. If the key is imported into a zone,
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen this is the TTL that will be used for it, unless there was
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen already a DNSKEY RRset in place, in which case the existing TTL
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen would take precedence. Setting the default TTL to
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen <code class="literal">0</code> or <code class="literal">none</code> removes it.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p></dd>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dt><span class="term">-h</span></dt>
ab860363d571038eaf04153967ce68ea11f27e22slive<dd><p>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen Emit usage message and exit.
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive </p></dd>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<dd><p>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive Sets the debugging level.
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive </p></dd>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
6eef889fc0b7cd42c4c8ca7e8e094dc2c0b030fcslive<dd><p>
ab860363d571038eaf04153967ce68ea11f27e22slive Use the given OpenSSL engine. When compiled with PKCS#11 support
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen it defaults to pkcs11; the empty name resets it to no engine.
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen </p></dd>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen</dl></div>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen</div>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<div class="refsect1" lang="en">
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<a name="id2616886"></a><h2>TIMING OPTIONS</h2>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<p>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS.
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen If the argument begins with a '+' or '-', it is interpreted as
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen an offset from the present time. For convenience, if such an offset
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen is followed by one of the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi',
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen then the offset is computed in years (defined as 365 24-hour days,
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen ignoring leap years), months (defined as 30 24-hour days), weeks,
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen days, hours, or minutes, respectively. Without a suffix, the offset
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen is computed in seconds. To unset a date, use 'none'.
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen </p>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<div class="variablelist"><dl>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<dt><span class="term">-P <em class="replaceable"><code>date/offset</code></em></span></dt>
936378e1f47e35c9fa44915ea4d2e39cbdd52fe7rbowen<dd><p>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb Sets the date on which a key is to be published to the zone.
e06675c51d084791089d79c3ac18aeae8dd465fcrbb After that date, the key will be included in the zone but will
e06675c51d084791089d79c3ac18aeae8dd465fcrbb not be used to sign it.
e06675c51d084791089d79c3ac18aeae8dd465fcrbb </p></dd>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb<dt><span class="term">-A <em class="replaceable"><code>date/offset</code></em></span></dt>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb<dd><p>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb Sets the date on which the key is to be activated. After that
e06675c51d084791089d79c3ac18aeae8dd465fcrbb date, the key will be included in the zone and used to sign
e06675c51d084791089d79c3ac18aeae8dd465fcrbb it.
e06675c51d084791089d79c3ac18aeae8dd465fcrbb </p></dd>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb<dt><span class="term">-R <em class="replaceable"><code>date/offset</code></em></span></dt>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb<dd><p>
e06675c51d084791089d79c3ac18aeae8dd465fcrbb Sets the date on which the key is to be revoked. After that
e06675c51d084791089d79c3ac18aeae8dd465fcrbb date, the key will be flagged as revoked. It will be included
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen in the zone and will be used to sign it.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p></dd>
f9f056cc901d76ce30456457a4f15fec1a42e8a7rbowen<dt><span class="term">-I <em class="replaceable"><code>date/offset</code></em></span></dt>
f9f056cc901d76ce30456457a4f15fec1a42e8a7rbowen<dd><p>
f9f056cc901d76ce30456457a4f15fec1a42e8a7rbowen Sets the date on which the key is to be retired. After that
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen date, the key will still be included in the zone, but it
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen will not be used to sign it.
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen </p></dd>
e213c78d4d5c360645156dab56938b3565ebe8c1rbowen<dt><span class="term">-D <em class="replaceable"><code>date/offset</code></em></span></dt>
<dd><p>
Sets the date on which the key is to be deleted. After that
date, the key will no longer be included in the zone. (It
may remain in the key repository, however.)
</p></dd>
<dt><span class="term">-S <em class="replaceable"><code>predecessor key</code></em></span></dt>
<dd><p>
Select a key for which the key being modified will be an
explicit successor. The name, algorithm, size, and type of the
predecessor key must exactly match those of the key being
modified. The activation date of the successor key will be set
to the inactivation date of the predecessor. The publication
date will be set to the activation date minus the prepublication
interval, which defaults to 30 days.
</p></dd>
<dt><span class="term">-i <em class="replaceable"><code>interval</code></em></span></dt>
<dd>
<p>
Sets the prepublication interval for a key. If set, then
the publication and activation dates must be separated by at least
this much time. If the activation date is specified but the
publication date isn't, then the publication date will default
to this much time before the activation date; conversely, if
the publication date is specified but activation date isn't,
then activation will be set to this much time after publication.
</p>
<p>
If the key is being set to be an explicit successor to another
key, then the default prepublication interval is 30 days;
otherwise it is zero.
</p>
<p>
As with date offsets, if the argument is followed by one of
the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi', then the
interval is measured in years, months, weeks, days, hours,
or minutes, respectively. Without a suffix, the interval is
measured in seconds.
</p>
</dd>
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2617161"></a><h2>PRINTING OPTIONS</h2>
<p>
<span><strong class="command">dnssec-settime</strong></span> can also be used to print the
timing metadata associated with a key.
</p>
<div class="variablelist"><dl>
<dt><span class="term">-u</span></dt>
<dd><p>
Print times in UNIX epoch format.
</p></dd>
<dt><span class="term">-p <em class="replaceable"><code>C/P/A/R/I/D/all</code></em></span></dt>
<dd><p>
Print a specific metadata value or set of metadata values.
The <code class="option">-p</code> option may be followed by one or more
of the following letters to indicate which value or values to print:
<code class="option">C</code> for the creation date,
<code class="option">P</code> for the publication date,
<code class="option">A</code> for the activation date,
<code class="option">R</code> for the revocation date,
<code class="option">I</code> for the inactivation date, or
<code class="option">D</code> for the deletion date.
To print all of the metadata, use <code class="option">-p all</code>.
</p></dd>
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2617241"></a><h2>SEE ALSO</h2>
<p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>,
<em class="citetitle">RFC 5011</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2617274"></a><h2>AUTHOR</h2>
<p><span class="corpauthor">Internet Systems Consortium</span>
</p>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="man.dnssec-revoke.html">Prev</a>�</td>
<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
<td width="40%" align="right">�<a accesskey="n" href="man.dnssec-signzone.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<span class="application">dnssec-revoke</span>�</td>
<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
<td width="40%" align="right" valign="top">�<span class="application">dnssec-signzone</span>
</td>
</tr>
</table>
</div>
</body>
</html>