Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / zkt / man / dnssec-zkt.8.html
blob3c53d04cfffe8a530119fa8655280e56be02e4a1
1 <!-- Creator : groff version 1.20.1 -->
2 <!-- CreationDate: Tue Aug 4 21:33:40 2009 -->
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
4 "http://www.w3.org/TR/html4/loose.dtd">
5 <html>
6 <head>
7 <meta name="generator" content="groff -Thtml, see www.gnu.org">
8 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
9 <meta name="Content-Style" content="text/css">
10 <style type="text/css">
11 p { margin-top: 0; margin-bottom: 0; vertical-align: top }
12 pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
13 table { margin-top: 0; margin-bottom: 0; vertical-align: top }
14 h1 { text-align: center }
15 </style>
16 <title>dnssec-zkt</title>
18 </head>
19 <body>
21 <h1 align="center">dnssec-zkt</h1>
23 <a href="#NAME">NAME</a><br>
24 <a href="#SYNOPSYS">SYNOPSYS</a><br>
25 <a href="#DESCRIPTION">DESCRIPTION</a><br>
26 <a href="#GENERAL OPTIONS">GENERAL OPTIONS</a><br>
27 <a href="#COMMAND OPTIONS">COMMAND OPTIONS</a><br>
28 <a href="#SAMPLE USAGE">SAMPLE USAGE</a><br>
29 <a href="#ENVIRONMENT VARIABLES">ENVIRONMENT VARIABLES</a><br>
30 <a href="#FILES">FILES</a><br>
31 <a href="#BUGS">BUGS</a><br>
32 <a href="#AUTHORS">AUTHORS</a><br>
33 <a href="#COPYRIGHT">COPYRIGHT</a><br>
34 <a href="#SEE ALSO">SEE ALSO</a><br>
36 <hr>
39 <h2>NAME
40 <a name="NAME"></a>
41 </h2>
44 <p style="margin-left:11%; margin-top: 1em">dnssec-zkt
45 &mdash; Secure DNS zone key tool</p>
47 <h2>SYNOPSYS
48 <a name="SYNOPSYS"></a>
49 </h2>
53 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt</b>
54 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
55 <i>file</i>] [<b>&minus;l</b> <i>list</i>]
56 [<b>&minus;adefhkLrptz</b>] [{<i>keyfile</i>|<i>dir</i>}
57 <i>...</i>]</p>
59 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
60 &minus;C</b>&lt;label&gt; [<b>&minus;V|--view</b>
61 <i>view</i>] [<b>&minus;c</b> <i>file</i>]
62 [<b>&minus;krpz</b>] [{<i>keyfile</i>|<i>dir</i>}
63 <i>...</i>] <b><br>
64 dnssec-zkt &minus;&minus;create=</b>&lt;label&gt;
65 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
66 <i>file</i>] [<b>&minus;krpz</b>]
67 [{<i>keyfile</i>|<i>dir</i>} <i>...</i>]</p>
69 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
70 &minus;</b>{<b>P</b>|<b>A</b>|<b>D</b>|<b>R</b>}<b>&lt;keytag&gt;</b>
71 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
72 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
73 <i>...</i>] <b><br>
74 dnssec-zkt &minus;&minus;published=</b>&lt;keytag&gt;
75 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
76 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
77 <i>...</i>] <b><br>
78 dnssec-zkt &minus;&minus;active=</b>&lt;keytag&gt;
79 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
80 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
81 <i>...</i>] <b><br>
82 dnssec-zkt &minus;&minus;depreciate=</b>&lt;keytag&gt;
83 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
84 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
85 <i>...</i>] <b><br>
86 dnssec-zkt &minus;&minus;rename=</b>&lt;keytag&gt;
87 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
88 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
89 <i>...</i>]</p>
91 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
92 &minus;&minus;destroy=</b>&lt;keytag&gt;
93 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
94 <i>file</i>] [<b>&minus;r</b>] [{<i>keyfile</i>|<i>dir</i>}
95 <i>...</i>]</p>
97 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
98 &minus;T</b> [<b>&minus;V|--view</b> <i>view</i>]
99 [<b>&minus;c</b> <i>file</i>] [<b>&minus;l</b> <i>list</i>]
100 [<b>&minus;hr</b>] [{<i>keyfile</i>|<i>dir</i>} <i>...</i>]
101 <b><br>
102 dnssec-zkt &minus;&minus;list-trustedkeys</b>
103 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
104 <i>file</i>] [<b>&minus;l</b> <i>list</i>]
105 [<b>&minus;hr</b>] [{<i>keyfile</i>|<i>dir</i>}
106 <i>...</i>]</p>
108 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
109 &minus;K</b> [<b>&minus;V|--view</b> <i>view</i>]
110 [<b>&minus;c</b> <i>file</i>] [<b>&minus;l</b> <i>list</i>]
111 [<b>&minus;hkzr</b>] [{<i>keyfile</i>|<i>dir</i>}
112 <i>...</i>] <b><br>
113 dnssec-zkt &minus;&minus;list-dnskeys</b>
114 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
115 <i>file</i>] [<b>&minus;l</b> <i>list</i>]
116 [<b>&minus;hkzr</b>] [{<i>keyfile</i>|<i>dir</i>}
117 <i>...</i>]</p>
119 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
120 &minus;Z</b> [<b>&minus;V|--view</b> <i>view</i>]
121 [<b>&minus;c</b> <i>file</i>] <b><br>
122 dnssec-zkt &minus;&minus;zone-config</b>
123 [<b>&minus;V|--view</b> <i>view</i>] [<b>&minus;c</b>
124 <i>file</i>]</p>
126 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
127 &minus;9 | &minus;&minus;ksk-rollover <br>
128 dnssec-zkt &minus;1 | &minus;&minus;ksk-roll-phase1</b>
129 <i>do.ma.in.</i> [<b>&minus;V|--view</b> <i>view</i>]
130 [<b>&minus;c</b> <i>file</i>] <b><br>
131 dnssec-zkt &minus;2 | &minus;&minus;ksk-roll-phase2</b>
132 <i>do.ma.in.</i> [<b>&minus;V|--view</b> <i>view</i>]
133 [<b>&minus;c</b> <i>file</i>] <b><br>
134 dnssec-zkt &minus;3 | &minus;&minus;ksk-roll-phase3</b>
135 <i>do.ma.in.</i> [<b>&minus;V|--view</b> <i>view</i>]
136 [<b>&minus;c</b> <i>file</i>] <b><br>
137 dnssec-zkt &minus;0 | &minus;&minus;ksk-roll-stat</b>
138 <i>do.ma.in.</i> [<b>&minus;V|--view</b> <i>view</i>]
139 [<b>&minus;c</b> <i>file</i>]</p>
141 <h2>DESCRIPTION
142 <a name="DESCRIPTION"></a>
143 </h2>
146 <p style="margin-left:11%; margin-top: 1em">The
147 <i>dnssec-zkt</i> command is a wrapper around
148 <i>dnssec-keygen(8)</i> to assist in dnssec zone key
149 management.</p>
151 <p style="margin-left:11%; margin-top: 1em">In the common
152 usage the command prints out information about all dnssec
153 (zone) keys found in the given (or predefined default)
154 directory. It is also possible to specify keyfiles (K*.key)
155 as arguments. With option <b>&minus;r</b> subdirectories
156 will be searched recursively, and all dnssec keys found will
157 be listed sorted by domain name, key type and generation
158 time. In that mode the use of the <b>&minus;p</b> option may
159 be helpful to find the location of the keyfile in the
160 directory tree.</p>
162 <p style="margin-left:11%; margin-top: 1em">Other forms of
163 the command print out keys in a format suitable for a
164 trusted-key section or as a DNSKEY resource record.</p>
166 <p style="margin-left:11%; margin-top: 1em">The command is
167 also useful in dns key management. It offers monitoring of
168 key lifetime and modification of key status.</p>
170 <h2>GENERAL OPTIONS
171 <a name="GENERAL OPTIONS"></a>
172 </h2>
176 <p style="margin-left:11%; margin-top: 1em"><b>&minus;V</b>
177 <i>view</i><b>, &minus;&minus;view=</b><i>view</i></p>
179 <p style="margin-left:22%;">Try to read the default
180 configuration out of a file named
181 <i>dnssec-&lt;view&gt;.conf .</i> Instead of specifying the
182 &minus;V or --view option every time, it is also possible to
183 create a hard or softlink to the executable file to give it
184 an additional name like <i>dnssec-zkt-&lt;view&gt; .</i></p>
186 <p style="margin-left:11%;"><b>&minus;c</b> <i>file</i><b>,
187 &minus;&minus;config=</b><i>file</i></p>
189 <p style="margin-left:22%;">Read default values from the
190 specified config file. Otherwise the default config file is
191 read or build in defaults will be used.</p>
193 <p style="margin-left:11%;"><b>&minus;O</b>
194 <i>optstr</i><b>,
195 &minus;&minus;config-option=</b><i>optstr</i></p>
197 <p style="margin-left:22%;">Set any config file option via
198 the commandline. Several config file options could be
199 specified at the argument string but have to be delimited by
200 semicolon (or newline).</p>
202 <p style="margin-left:11%;"><b>&minus;l</b> <i>list</i></p>
204 <p style="margin-left:22%;">Print out information solely
205 about domains given in the comma or space separated list.
206 Take care of, that every domain name has a trailing dot.</p>
208 <p style="margin-left:11%;"><b>&minus;d</b>,
209 <b>&minus;&minus;directory</b></p>
211 <p style="margin-left:22%;">Skip directory arguments. This
212 will be useful in combination with wildcard arguments to
213 prevent dnsssec-zkt to list all keys found in
214 subdirectories. For example &quot;dnssec-zkt -d *&quot; will
215 print out a list of all keys only found in the current
216 directory. Maybe it is easier to use &quot;dnssec-zkt
217 .&quot; instead (without -r set). The option works similar
218 to the &minus;d option of <i>ls(1)</i>.</p>
220 <p style="margin-left:11%;"><b>&minus;L</b>,
221 <b>&minus;&minus;left-justify</b></p>
223 <p style="margin-left:22%;">Print out the domain name left
224 justified.</p>
226 <p style="margin-left:11%;"><b>&minus;k</b>,
227 <b>&minus;&minus;ksk</b></p>
229 <p style="margin-left:22%;">Select and print key signing
230 keys only (default depends on command mode).</p>
232 <p style="margin-left:11%;"><b>&minus;z</b>,
233 <b>&minus;&minus;zsk</b></p>
235 <p style="margin-left:22%;">Select and print zone signing
236 keys only (default depends on command mode).</p>
238 <p style="margin-left:11%;"><b>&minus;r</b>,
239 <b>&minus;&minus;recursive</b></p>
241 <p style="margin-left:22%;">Recursive mode (default is
242 off). <br>
243 Also settable in the dnssec.conf file (Parameter:
244 Recursive).</p>
246 <p style="margin-left:11%;"><b>&minus;p</b>,
247 <b>&minus;&minus;path</b></p>
249 <p style="margin-left:22%;">Print pathname in listing mode.
250 In -C mode, don&rsquo;t create the new key in the same
251 directory as (already existing) keys with the same
252 label.</p>
254 <p style="margin-left:11%;"><b>&minus;a</b>,
255 <b>&minus;&minus;age</b></p>
257 <p style="margin-left:22%;">Print age of key in weeks,
258 days, hours, minutes and seconds (default is off). <br>
259 Also settable in the dnssec.conf file (Parameter:
260 PrintAge).</p>
262 <p style="margin-left:11%;"><b>&minus;f</b>,
263 <b>&minus;&minus;lifetime</b></p>
265 <p style="margin-left:22%;">Print the key lifetime.</p>
267 <p style="margin-left:11%;"><b>&minus;F</b>,
268 <b>&minus;&minus;setlifetime</b></p>
270 <p style="margin-left:22%;">Set the key lifetime of all the
271 selected keys. Use option -k, -z, -l or the file and dir
272 argument for key selection.</p>
274 <p style="margin-left:11%;"><b>&minus;e</b>,
275 <b>&minus;&minus;exptime</b></p>
277 <p style="margin-left:22%;">Print the key expiration
278 time.</p>
280 <p style="margin-left:11%;"><b>&minus;t</b>,
281 <b>&minus;&minus;time</b></p>
283 <p style="margin-left:22%;">Print the key generation time
284 (default is on). <br>
285 Also settable in the dnssec.conf file (Parameter:
286 PrintTime).</p>
288 <table width="100%" border="0" rules="none" frame="void"
289 cellspacing="0" cellpadding="0">
290 <tr valign="top" align="left">
291 <td width="11%"></td>
292 <td width="3%">
295 <p><b>&minus;h</b></p></td>
296 <td width="8%"></td>
297 <td width="78%">
300 <p>No header or trusted-key section header and trailer in
301 -T mode</p></td></tr>
302 </table>
304 <h2>COMMAND OPTIONS
305 <a name="COMMAND OPTIONS"></a>
306 </h2>
310 <p style="margin-left:11%; margin-top: 1em"><b>&minus;H</b>,
311 <b>&minus;&minus;help</b></p>
313 <p style="margin-left:22%;">Print out the online help.</p>
315 <p style="margin-left:11%;"><b>&minus;T</b>,
316 <b>&minus;&minus;list-trustedkeys</b></p>
318 <p style="margin-left:22%;">List all key signing keys as a
319 <i>named.conf</i> trusted-key section. Use <b>&minus;h</b>
320 to supress the section header/trailer.</p>
322 <p style="margin-left:11%;"><b>&minus;K</b>,
323 <b>&minus;&minus;list-dnskeys</b></p>
325 <p style="margin-left:22%;">List the public part of all the
326 keys in DNSKEY resource record format. Use <b>&minus;h</b>
327 to suppress comment lines.</p>
329 <p style="margin-left:11%;"><b>&minus;C</b> <i>zone</i><b>,
330 &minus;&minus;create=</b><i>zone</i></p>
332 <p style="margin-left:22%;">Create a new zone signing key
333 for the given zone. Add option <b>&minus;k</b> to create a
334 key signing key. The key algorithm and key length will be
335 examined from built-in default values or from the parameter
336 settings in the <i>dnssec.conf</i> file. <br>
337 The keyfile will be created in the current directory if the
338 <b>&minus;p</b> option is specified.</p>
340 <p style="margin-left:11%;"><b>&minus;R</b>
341 <i>keyid</i><b>, &minus;&minus;revoke=</b><i>keyid</i></p>
343 <p style="margin-left:22%;">Revoke the key signing key with
344 the given keyid. A revoked key has bit 8 in the flags filed
345 set (see RFC5011). The keyid is the numeric keytag with an
346 optionally added zone name separated by a colon.</p>
349 <p style="margin-left:11%;"><b>&minus;&minus;rename=&quot;</b><i>keyid</i></p>
351 <p style="margin-left:22%;">Rename the key files of the key
352 with the given keyid (Look at key file names starting with
353 an lower &rsquo;k&rsquo;). The keyid is the numeric keytag
354 with an optionally added zone name separated by a colon.</p>
357 <p style="margin-left:11%;"><b>&minus;&minus;destroy=</b><i>keyid</i></p>
359 <p style="margin-left:22%;">Deletes the key with the given
360 keyid. The keyid is the numeric keytag with an optionally
361 added zone name separated by a colon. Beware that this
362 deletes both private and public keyfiles, thus the key is
363 unrecoverable lost.</p>
365 <p style="margin-left:11%;"><b>&minus;P|A|D</b>
366 <i>keyid,</i> <b>&minus;&minus;published=</b><i>keyid,</i>
367 <b>&minus;&minus;active=</b><i>keyid,</i>
368 <b>&minus;&minus;depreciated=</b><i>keyid</i></p>
370 <p style="margin-left:22%;">Change the status of the given
371 dnssec key to published (<b>&minus;P</b>), active
372 (<b>&minus;A</b>) or depreciated (<b>&minus;D</b>). The
373 <i>keyid</i> is the numeric keytag with an optionally added
374 zone name separated by a colon. Setting the status to
375 &quot;published&quot; or &quot;depreciate&quot; will change
376 the filename of the private key file to
377 &quot;.published&quot; or &quot;.depreciated&quot;
378 respectivly. This prevents the usage of the key as a signing
379 key by the use of <i>dnssec-signzone(8)</i>. The time of
380 status change will be stored in the &rsquo;mtime&rsquo;
381 field of the corresponding &quot;.key&quot; file. Key
382 activation via option <b>&minus;A</b> will restore the
383 original timestamp and file name (&quot;.private&quot;).</p>
385 <p style="margin-left:11%;"><b>&minus;Z</b>,
386 <b>&minus;&minus;zone-config</b></p>
388 <p style="margin-left:22%;">Write all config parameters to
389 stdout. The output is suitable as a template for the
390 <i>dnssec.conf</i> file, so the easiest way to create a
391 <i>dnssec.conf</i> file is to redirect the standard output
392 of the above command. Pay attention not to overwrite an
393 existing file.</p>
396 <p style="margin-left:11%;"><b>&minus;&minus;ksk-roll-phase[123]</b>
397 <i>do.ma.in.</i></p>
399 <p style="margin-left:22%;">Initiate a key signing key
400 rollover of the specified domain. This feature is currently
401 in experimental status and is mainly for the use in an
402 hierachical environment. Use --ksk-rollover for a little
403 more detailed description.</p>
405 <h2>SAMPLE USAGE
406 <a name="SAMPLE USAGE"></a>
407 </h2>
410 <p style="margin-left:11%; margin-top: 1em"><b>dnssec-zkt
411 &minus;r .</b></p>
413 <p style="margin-left:22%;">Print out a list of all zone
414 keys found below the current directory.</p>
416 <p style="margin-left:11%;"><b>dnssec-zkt &minus;Z &minus;c
417 &quot;&quot;</b></p>
419 <p style="margin-left:22%;">Print out the compiled in
420 default parameters.</p>
422 <p style="margin-left:11%;"><b>dnssec-zkt &minus;C
423 example.net &minus;k &minus;r ./zonedir</b></p>
425 <p style="margin-left:22%;">Create a new key signing key
426 for the zone &quot;example.net&quot;. Store the key in the
427 same directory below &quot;zonedir&quot; where the other
428 &quot;example.net&quot; keys live.</p>
430 <p style="margin-left:11%;"><b>dnssec-zkt &minus;T
431 ./zonedir/example.net</b></p>
433 <p style="margin-left:22%;">Print out a trusted-key section
434 containing the key signing keys of
435 &quot;example.net&quot;.</p>
437 <p style="margin-left:11%;"><b>dnssec-zkt &minus;D 123245
438 &minus;r .</b></p>
440 <p style="margin-left:22%;">Depreciate the key with tag
441 &quot;12345&quot; below the current directory,</p>
443 <p style="margin-left:11%;"><b>dnssec-zkt --view
444 intern</b></p>
446 <p style="margin-left:22%;">Print out a list of all zone
447 keys found below the directory where all the zones of view
448 intern live. There should be a seperate dnssec config file
449 <i>dnssec-intern.conf</i> with a directory option to take
450 affect of this.</p>
452 <p style="margin-left:11%;"><b>dnssec-zkt-intern</b></p>
454 <p style="margin-left:22%;">Same as above. The binary file
455 <i>dnssec-zkt</i> has another link, named
456 <i>dnssec-zkt-intern</i> made, and <i>dnssec-zkt</i>
457 examines argv[0] to find a view whose zones it proceeds to
458 process.</p>
460 <h2>ENVIRONMENT VARIABLES
461 <a name="ENVIRONMENT VARIABLES"></a>
462 </h2>
466 <p style="margin-left:11%; margin-top: 1em">ZKT_CONFFILE</p>
468 <p style="margin-left:22%;">Specifies the name of the
469 default global configuration files.</p>
471 <h2>FILES
472 <a name="FILES"></a>
473 </h2>
477 <p style="margin-left:11%; margin-top: 1em"><i>/var/named/dnssec.conf</i></p>
479 <p style="margin-left:22%;">Built-in default global
480 configuration file. The name of the default global config
481 file is settable via the environment variable
482 ZKT_CONFFILE.</p>
485 <p style="margin-left:11%;"><i>/var/named/dnssec-&lt;view&gt;.conf</i></p>
487 <p style="margin-left:22%;">View specific global
488 configuration file.</p>
490 <p style="margin-left:11%;"><i>./dnssec.conf</i></p>
492 <p style="margin-left:22%;">Local configuration file (only
493 used in <b>&minus;C</b> mode).</p>
495 <h2>BUGS
496 <a name="BUGS"></a>
497 </h2>
500 <p style="margin-left:11%; margin-top: 1em">Some of the
501 general options will not be meaningful in all of the command
502 modes. <br>
503 The option <b>&minus;l</b> and the ksk rollover options
504 insist on domain names ending with a dot.</p>
506 <h2>AUTHORS
507 <a name="AUTHORS"></a>
508 </h2>
511 <p style="margin-left:11%; margin-top: 1em">Holger Zuleger,
512 Mans Nilsson</p>
514 <h2>COPYRIGHT
515 <a name="COPYRIGHT"></a>
516 </h2>
519 <p style="margin-left:11%; margin-top: 1em">Copyright (c)
520 2005 &minus; 2008 by Holger Zuleger. Licensed under the BSD
521 Licences. There is NO warranty; not even for MERCHANTABILITY
522 or FITNESS FOR A PARTICULAR PURPOSE.</p>
524 <h2>SEE ALSO
525 <a name="SEE ALSO"></a>
526 </h2>
530 <p style="margin-left:11%; margin-top: 1em">dnssec-keygen(8),
531 dnssec-signzone(8), rndc(8), named.conf(5),
532 dnssec-signer(8), <br>
533 RFC4641 &quot;DNSSEC Operational Practices&quot; by Miek
534 Gieben and Olaf Kolkman, <br>
535 DNSSEC HOWTO Tutorial by Olaf Kolkman, RIPE NCC <br>
536 (http://www.nlnetlabs.nl/dnssec_howto/)</p>
537 <hr>
538 </body>
539 </html>