1 .\" $NetBSD: zkt-keyman.8,v 1.1.1.1 2015/07/08 15:37:49 christos Exp $
3 .TH zkt\-keyman 8 "Apr 1, 2010" "ZKT 1.0" ""
4 \" turn off hyphenation
8 zkt\-keyman \(em A DNSSEC key management tool
19 .RI [{ keyfile | dir }
23 .BR \-\-create= <label>
29 .RI [{ keyfile | dir }
33 .BR \- { P | A | D | R } <keytag>
39 .RI [{ keyfile | dir }
43 .BR \-\-published= <keytag>
49 .RI [{ keyfile | dir }
53 .BR \-\-active= <keytag>
59 .RI [{ keyfile | dir }
63 .BR \-\-depreciate= <keytag>
69 .RI [{ keyfile | dir }
73 .BR \-\-rename= <keytag>
79 .RI [{ keyfile | dir }
83 .BR \-\-destroy= <keytag>
89 .RI [{ keyfile | dir }
93 .B \-9 | \-\-ksk-rollover
96 .B \-1 | \-\-ksk-roll-phase1
104 .B \-2 | \-\-ksk-roll-phase2
112 .B \-3 | \-\-ksk-roll-phase3
120 .B \-0 | \-\-ksk-roll-stat
132 command is a wrapper around
134 to assist in dnssec zone key management.
136 The command is useful in dns key management.
137 It is suitable for modification of key status.
141 .BI \-V " view" ", \-\-view=" view
142 Try to read the default configuration out of a file named
143 .I dnssec-<view>.conf .
144 Instead of specifying the \-V or --view option every time,
145 it is also possible to create a hard or softlink to the
146 executable file to give it an additional name like
147 .I zkt\-keyman\-<view> .
149 .BI \-c " file" ", \-\-config=" file
150 Read default values from the specified config file.
151 Otherwise the default config file is read or build in defaults
154 .BI \-O " optstr" ", \-\-config-option=" optstr
155 Set any config file option via the commandline.
156 Several config file options could be specified at the argument string
157 but have to be delimited by semicolon (or newline).
159 .BR \-d ", " \-\-directory
160 Skip directory arguments.
161 This will be useful in combination with wildcard arguments
162 to prevent dnsssec-zkt to list all keys found in subdirectories.
163 For example "zkt\-keyman -d *" will print out a list of all keys only found in
164 the current directory.
165 Maybe it is easier to use "zkt\-keyman ." instead (without -r set).
166 The option works similar to the \-d option of
170 Select key signing keys only (default depends on command mode).
173 Select zone signing keys only (default depends on command mode).
175 .BR \-r ", " \-\-recursive
176 Recursive mode (default is off).
178 Also settable in the dnssec.conf file (Parameter: Recursive).
180 .BR \-F ", " \-\-setlifetime
181 Set the key lifetime of all the selected keys.
182 Use option -k, -z, -l or the file and dir argument for key selection.
187 .BR \-h ", " \-\-help
188 Print out the online help.
190 .BI \-C " zone" ", \-\-create=" zone
191 Create a new zone signing key for the given zone.
194 to create a key signing key.
195 The key algorithm and key length will be examined from built-in default values
196 or from the parameter settings in the
200 The keyfile will be created in the current directory if
205 .BI \-R " keyid" ", \-\-revoke=" keyid
206 Revoke the key signing key with the given keyid.
207 A revoked key has bit 8 in the flags field set (see RFC5011).
208 The keyid is the numeric keytag with an optionally added zone name separated by a colon.
210 .BI \-\-rename=" keyid
211 Rename the key files of the key with the given keyid
212 (Look at key file names starting with an lower 'k').
213 The keyid is the numeric keytag with an optionally added zone name separated by a colon.
215 .BI \-\-destroy= keyid
216 Deletes the key with the given keyid.
217 The keyid is the numeric keytag with an optionally added zone name separated by a colon.
218 Beware that this deletes both private and public keyfiles, thus the key is
221 .BI \-P|A|D " keyid," " \-\-published=" keyid, " \-\-active=" keyid, " \-\-depreciated=" keyid
222 Change the status of the given dnssec key to
231 is the numeric keytag with an optionally added zone name separated by a colon.
232 Setting the status to "published" or "depreciate" will change the filename
233 of the private key file to ".published" or ".depreciated" respectivly.
234 This prevents the usage of the key as a signing key by the use of
235 .IR dnssec-signzone(8) .
236 The time of status change will be stored in the 'mtime' field of the corresponding
238 Key activation via option
240 will restore the original timestamp and file name (".private").
242 .BI \-\-ksk-roll-phase[123] " do.ma.in."
243 Initiate a key signing key rollover of the specified domain.
244 This feature is currently in experimental status and is mainly for the use
245 in an hierachical environment.
246 Use --ksk-rollover for a little more detailed description.
252 .B "zkt-keyman \-C example.net \-k \-r ./zonedir
254 Create a new key signing key for the zone "example.net".
255 Store the key in the same directory below "zonedir" where the other
256 "example.net" keys life.
259 .B "zkt-keyman \-D 123245 \-r .
261 Depreciate the key with tag "12345" below the current directory,
264 .B "zkt-keyman --view intern \-C example.net
266 Create a new zone key for the internal zone example.net.
269 .B "zkt-keyman-intern
274 has another link, named
278 examines argv[0] to find a view whose zones it proceeds to process.
280 .SH ENVIRONMENT VARIABLES
283 Specifies the name of the default global configuration files.
287 .I /var/named/dnssec.conf
288 Built-in default global configuration file.
289 The name of the default global config file is settable via
290 the environment variable ZKT_CONFFILE.
292 .I /var/named/dnssec-<view>.conf
293 View specific global configuration file.
296 Local configuration file (only used in
306 Copyright (c) 2005 \- 2008 by Holger Zuleger.
307 Licensed under the BSD Licences. There is NO warranty; not even for MERCHANTABILITY or
308 FITNESS FOR A PARTICULAR PURPOSE.
309 .\"--------------------------------------------------
311 dnssec-keygen(8), dnssec-signzone(8), rndc(8), named.conf(5), zkt-conf(8), zkt-ls(8), zkt-signer(8)
314 "DNSSEC Operational Practices" by Miek Gieben and Olaf Kolkman,
316 DNSSEC HOWTO Tutorial by Olaf Kolkman, RIPE NCC
318 (http://www.nlnetlabs.nl/dnssec_howto/)