2 - Copyright (C) 2009-2011, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
4 - Permission to use, copy, modify, and/or distribute this software for any
5 - purpose with or without fee is hereby granted, provided that the above
6 - copyright notice and this permission notice appear in all copies.
8 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 - PERFORMANCE OF THIS SOFTWARE.
18 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
19 <title>dnssec-settime</title>
20 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
22 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
23 <a name="man.dnssec-settime"></a><div class="titlepage"></div>
24 <div class="refnamediv">
26 <p><span class="application">dnssec-settime</span> — Set the key timing metadata for a DNSSEC key</p>
28 <div class="refsynopsisdiv">
30 <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</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>
32 <div class="refsection">
33 <a name="id-1.7"></a><h2>DESCRIPTION</h2>
34 <p><span class="command"><strong>dnssec-settime</strong></span>
35 reads a DNSSEC private key file and sets the key timing metadata
36 as specified by the <code class="option">-P</code>, <code class="option">-A</code>,
37 <code class="option">-R</code>, <code class="option">-I</code>, and <code class="option">-D</code>
38 options. The metadata can then be used by
39 <span class="command"><strong>dnssec-signzone</strong></span> or other signing software to
40 determine when a key is to be published, whether it should be
41 used for signing a zone, etc.
44 If none of these options is set on the command line,
45 then <span class="command"><strong>dnssec-settime</strong></span> simply prints the key timing
46 metadata already stored in the key.
49 When key metadata fields are changed, both files of a key
50 pair (<code class="filename">Knnnn.+aaa+iiiii.key</code> and
51 <code class="filename">Knnnn.+aaa+iiiii.private</code>) are regenerated.
52 Metadata fields are stored in the private file. A human-readable
53 description of the metadata is also placed in comments in the key
54 file. The private file's permissions are always set to be
55 inaccessible to anyone other than the owner (mode 0600).
58 <div class="refsection">
59 <a name="id-1.8"></a><h2>OPTIONS</h2>
60 <div class="variablelist"><dl class="variablelist">
61 <dt><span class="term">-f</span></dt>
63 Force an update of an old-format key with no metadata fields.
64 Without this option, <span class="command"><strong>dnssec-settime</strong></span> will
65 fail when attempting to update a legacy key. With this option,
66 the key will be recreated in the new format, but with the
67 original key data retained. The key's creation date will be
68 set to the present time. If no other values are specified,
69 then the key's publication and activation dates will also
70 be set to the present time.
72 <dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
74 Sets the directory in which the key files are to reside.
76 <dt><span class="term">-L <em class="replaceable"><code>ttl</code></em></span></dt>
78 Sets the default TTL to use for this key when it is converted
79 into a DNSKEY RR. If the key is imported into a zone,
80 this is the TTL that will be used for it, unless there was
81 already a DNSKEY RRset in place, in which case the existing TTL
82 would take precedence. If this value is not set and there
83 is no existing DNSKEY RRset, the TTL will default to the
84 SOA TTL. Setting the default TTL to <code class="literal">0</code>
85 or <code class="literal">none</code> removes it from the key.
87 <dt><span class="term">-h</span></dt>
89 Emit usage message and exit.
91 <dt><span class="term">-V</span></dt>
93 Prints version information.
95 <dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
97 Sets the debugging level.
99 <dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
101 Use the given OpenSSL engine. When compiled with PKCS#11 support
102 it defaults to pkcs11; the empty name resets it to no engine.
106 <div class="refsection">
107 <a name="id-1.9"></a><h2>TIMING OPTIONS</h2>
109 Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS.
110 If the argument begins with a '+' or '-', it is interpreted as
111 an offset from the present time. For convenience, if such an offset
112 is followed by one of the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi',
113 then the offset is computed in years (defined as 365 24-hour days,
114 ignoring leap years), months (defined as 30 24-hour days), weeks,
115 days, hours, or minutes, respectively. Without a suffix, the offset
116 is computed in seconds. To unset a date, use 'none' or 'never'.
118 <div class="variablelist"><dl class="variablelist">
119 <dt><span class="term">-P <em class="replaceable"><code>date/offset</code></em></span></dt>
121 Sets the date on which a key is to be published to the zone.
122 After that date, the key will be included in the zone but will
123 not be used to sign it.
125 <dt><span class="term">-A <em class="replaceable"><code>date/offset</code></em></span></dt>
127 Sets the date on which the key is to be activated. After that
128 date, the key will be included in the zone and used to sign
131 <dt><span class="term">-R <em class="replaceable"><code>date/offset</code></em></span></dt>
133 Sets the date on which the key is to be revoked. After that
134 date, the key will be flagged as revoked. It will be included
135 in the zone and will be used to sign it.
137 <dt><span class="term">-I <em class="replaceable"><code>date/offset</code></em></span></dt>
139 Sets the date on which the key is to be retired. After that
140 date, the key will still be included in the zone, but it
141 will not be used to sign it.
143 <dt><span class="term">-D <em class="replaceable"><code>date/offset</code></em></span></dt>
145 Sets the date on which the key is to be deleted. After that
146 date, the key will no longer be included in the zone. (It
147 may remain in the key repository, however.)
149 <dt><span class="term">-S <em class="replaceable"><code>predecessor key</code></em></span></dt>
151 Select a key for which the key being modified will be an
152 explicit successor. The name, algorithm, size, and type of the
153 predecessor key must exactly match those of the key being
154 modified. The activation date of the successor key will be set
155 to the inactivation date of the predecessor. The publication
156 date will be set to the activation date minus the prepublication
157 interval, which defaults to 30 days.
159 <dt><span class="term">-i <em class="replaceable"><code>interval</code></em></span></dt>
162 Sets the prepublication interval for a key. If set, then
163 the publication and activation dates must be separated by at least
164 this much time. If the activation date is specified but the
165 publication date isn't, then the publication date will default
166 to this much time before the activation date; conversely, if
167 the publication date is specified but activation date isn't,
168 then activation will be set to this much time after publication.
171 If the key is being set to be an explicit successor to another
172 key, then the default prepublication interval is 30 days;
173 otherwise it is zero.
176 As with date offsets, if the argument is followed by one of
177 the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi', then the
178 interval is measured in years, months, weeks, days, hours,
179 or minutes, respectively. Without a suffix, the interval is
185 <div class="refsection">
186 <a name="id-1.10"></a><h2>PRINTING OPTIONS</h2>
188 <span class="command"><strong>dnssec-settime</strong></span> can also be used to print the
189 timing metadata associated with a key.
191 <div class="variablelist"><dl class="variablelist">
192 <dt><span class="term">-u</span></dt>
194 Print times in UNIX epoch format.
196 <dt><span class="term">-p <em class="replaceable"><code>C/P/A/R/I/D/all</code></em></span></dt>
198 Print a specific metadata value or set of metadata values.
199 The <code class="option">-p</code> option may be followed by one or more
200 of the following letters to indicate which value or values to print:
201 <code class="option">C</code> for the creation date,
202 <code class="option">P</code> for the publication date,
203 <code class="option">A</code> for the activation date,
204 <code class="option">R</code> for the revocation date,
205 <code class="option">I</code> for the inactivation date, or
206 <code class="option">D</code> for the deletion date.
207 To print all of the metadata, use <code class="option">-p all</code>.
211 <div class="refsection">
212 <a name="id-1.11"></a><h2>SEE ALSO</h2>
213 <p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
214 <span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
215 <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
216 <em class="citetitle">RFC 5011</em>.