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