Debian Codegraph @

doc/man/dnssec-keyfromlabel.1in

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNSSEC-KEYFROMLABEL" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 dnssec-keyfromlabel \- DNSSEC key generation tool
34 .SH SYNOPSIS
35 .sp
36 \fBdnssec\-keyfromlabel\fP {\fB\-l\fP label} [\fB\-3\fP] [\fB\-a\fP algorithm] [\fB\-A\fP date/offset] [\fB\-c\fP class] [\fB\-D\fP date/offset] [\fB\-D\fP sync date/offset] [\fB\-E\fP engine] [\fB\-f\fP flag] [\fB\-G\fP] [\fB\-I\fP date/offset] [\fB\-i\fP interval] [\fB\-k\fP] [\fB\-K\fP directory] [\fB\-L\fP ttl] [\fB\-M\fP tag_min:tag_max] [\fB\-n\fP nametype] [\fB\-P\fP date/offset] [\fB\-P\fP sync date/offset] [\fB\-p\fP protocol] [\fB\-R\fP date/offset] [\fB\-S\fP key] [\fB\-t\fP type] [\fB\-v\fP level] [\fB\-V\fP] [\fB\-y\fP] {name}
37 .SH DESCRIPTION
38 .sp
39 \fBdnssec\-keyfromlabel\fP generates a pair of key files that reference a
40 key object stored in a cryptographic hardware service module (HSM). The
41 private key file can be used for DNSSEC signing of zone data as if it
42 were a conventional signing key created by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>, but the
43 key material is stored within the HSM and the actual signing takes
44 place there.
45 .sp
46 The \fBname\fP of the key is specified on the command line. This must
47 match the name of the zone for which the key is being generated.
48 .SH OPTIONS
49 .INDENT 0.0
50 .TP
51 .B \-a algorithm
52 This option selects the cryptographic algorithm. The value of
53 \fBalgorithm\fP must be one of RSASHA1 (deprecated), NSEC3RSASHA1
54 (deprecated), RSASHA256, RSASHA512, ECDSAP256SHA256, ECDSAP384SHA384,
55 ED25519, or ED448.
56 .sp
57 These values are case\-insensitive. In some cases, abbreviations
58 are supported, such as ECDSA256 for ECDSAP256SHA256 and ECDSA384
59 for ECDSAP384SHA384. If RSASHA1 (deprecated) is specified along
60 with the \fB\-3\fP option, then NSEC3RSASHA1 (deprecated) is
61 used instead.
62 .sp
63 This option is mandatory except when using the \fB\-S\fP
64 option, which copies the algorithm from the predecessory key.
65 .sp
66 Changed in version 9.12.0: The default value RSASHA1 (deprecated) for newly generated
67 keys was removed.
68
69 .UNINDENT
70 .INDENT 0.0
71 .TP
72 .B \-3
73 This option uses an NSEC3\-capable algorithm to generate a DNSSEC
74 key. If this option is used with an algorithm that has both NSEC
75 and NSEC3 versions, then the NSEC3 version is used; for example,
76 \fBdnssec\-keygen \-3a RSASHA1\fP specifies the NSEC3RSASHA1
77 (deprecated) algorithm.
78 .UNINDENT
79 .INDENT 0.0
80 .TP
81 .B \-E engine
82 This option specifies the cryptographic hardware to use.
83 .sp
84 When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL
85 engine identifier that drives the cryptographic accelerator or
86 hardware service module (usually \fBpkcs11\fP).
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \-l label
91 This option specifies the label for a key pair in the crypto hardware.
92 .sp
93 When BIND 9 is built with OpenSSL\-based PKCS#11 support, the label is
94 an arbitrary string that identifies a particular key. It may be
95 preceded by an optional OpenSSL engine name, followed by a colon, as
96 in \fBpkcs11:keylabel\fP\&.
97 .UNINDENT
98 .INDENT 0.0
99 .TP
100 .B \-n nametype
101 This option specifies the owner type of the key. The value of \fBnametype\fP must
102 either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY
103 (for a key associated with a host (KEY)), USER (for a key associated
104 with a user (KEY)), or OTHER (DNSKEY). These values are
105 case\-insensitive.
106 .UNINDENT
107 .INDENT 0.0
108 .TP
109 .B \-C
110 This option enables compatibility mode, which generates an old\-style key, without any metadata.
111 By default, \fBdnssec\-keyfromlabel\fP includes the key\(aqs creation
112 date in the metadata stored with the private key; other dates may
113 be set there as well, including publication date, activation date, etc. Keys
114 that include this data may be incompatible with older versions of
115 BIND; the \fB\-C\fP option suppresses them.
116 .UNINDENT
117 .INDENT 0.0
118 .TP
119 .B \-c class
120 This option indicates that the DNS record containing the key should have the
121 specified class. If not specified, class IN is used.
122 .UNINDENT
123 .INDENT 0.0
124 .TP
125 .B \-f flag
126 This option sets the specified flag in the \fBflag\fP field of the KEY/DNSKEY record.
127 The only recognized flags are KSK (Key\-Signing Key) and REVOKE.
128 .UNINDENT
129 .INDENT 0.0
130 .TP
131 .B \-G
132 This option generates a key, but does not publish it or sign with it. This option is
133 incompatible with \fB\-P\fP and \fB\-A\fP\&.
134 .UNINDENT
135 .INDENT 0.0
136 .TP
137 .B \-h
138 This option prints a short summary of the options and arguments to
139 \fBdnssec\-keyfromlabel\fP\&.
140 .UNINDENT
141 .INDENT 0.0
142 .TP
143 .B \-K directory
144 This option sets the directory in which the key files are to be written.
145 .UNINDENT
146 .INDENT 0.0
147 .TP
148 .B \-k
149 This option generates KEY records rather than DNSKEY records.
150 .UNINDENT
151 .INDENT 0.0
152 .TP
153 .B \-L ttl
154 This option sets the default TTL to use for this key when it is converted into a
155 DNSKEY RR. This is the TTL used when the key is imported into a zone,
156 unless there was already a DNSKEY RRset in
157 place, in which case the existing TTL would take precedence. Setting
158 the default TTL to \fB0\fP or \fBnone\fP removes it.
159 .UNINDENT
160 .INDENT 0.0
161 .TP
162 .B \-M tag_min:tag_max
163 This option sets the range of key tag values
164 that \fBdnssec\-keyfromlabel\fP will accept. If the key tag of the new
165 key or the key tag of the revoked version of the new key is
166 outside this range, the new key will be rejected. This is
167 designed to be used when generating keys in a multi\-signer
168 scenario, where each operator is given a range of key tags to
169 prevent collisions among different operators. The valid
170 values for \fBtag_min\fP and \fBtag_max\fP are [0..65535]. The
171 default allows all key tag values to be accepted.
172 .UNINDENT
173 .INDENT 0.0
174 .TP
175 .B \-p protocol
176 This option sets the protocol value for the key. The protocol is a number between
177 0 and 255. The default is 3 (DNSSEC). Other possible values for this
178 argument are listed in \fBRFC 2535\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc2535\:.html> and its successors.
179 .UNINDENT
180 .INDENT 0.0
181 .TP
182 .B \-S key
183 This option generates a key as an explicit successor to an existing key. The name,
184 algorithm, size, and type of the key are set to match the
185 predecessor. The activation date of the new key is set to the
186 inactivation date of the existing one. The publication date is
187 set to the activation date minus the prepublication interval, which
188 defaults to 30 days.
189 .UNINDENT
190 .INDENT 0.0
191 .TP
192 .B \-t type
193 This option indicates the type of the key. \fBtype\fP must be one of AUTHCONF,
194 NOAUTHCONF, NOAUTH, or NOCONF. The default is AUTHCONF. AUTH refers
195 to the ability to authenticate data, and CONF to the ability to encrypt
196 data.
197 .UNINDENT
198 .INDENT 0.0
199 .TP
200 .B \-v level
201 This option sets the debugging level.
202 .UNINDENT
203 .INDENT 0.0
204 .TP
205 .B \-V
206 This option prints version information.
207 .UNINDENT
208 .INDENT 0.0
209 .TP
210 .B \-y
211 This option allows DNSSEC key files to be generated even if the key ID would
212 collide with that of an existing key, in the event of either key
213 being revoked. (This is only safe to enable if
214 \fBRFC 5011\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5011\:.html> trust anchor maintenance is not used with either of the keys
215 involved.)
216 .UNINDENT
217 .SH TIMING OPTIONS
218 .sp
219 Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS
220 (which is the format used inside key files),
221 or \(aqDay Mon DD HH:MM:SS YYYY\(aq (as printed by \fBdnssec\-settime \-p\fP),
222 or UNIX epoch time (as printed by \fBdnssec\-settime \-up\fP),
223 or the literal \fBnow\fP\&.
224 .sp
225 The argument can be followed by \fB+\fP or \fB\-\fP and an offset from the
226 given time. The literal \fBnow\fP can be omitted before an offset. The
227 offset can be followed by one of the suffixes \fBy\fP, \fBmo\fP, \fBw\fP,
228 \fBd\fP, \fBh\fP, or \fBmi\fP, so that it is computed in years (defined as
229 365 24\-hour days, ignoring leap years), months (defined as 30 24\-hour
230 days), weeks, days, hours, or minutes, respectively. Without a suffix,
231 the offset is computed in seconds.
232 .sp
233 To explicitly prevent a date from being set, use \fBnone\fP, \fBnever\fP,
234 or \fBunset\fP\&.
235 .sp
236 All these formats are case\-insensitive.
237 .INDENT 0.0
238 .TP
239 .B \-P date/offset
240 This option sets the date on which a key is to be published to the zone. After
241 that date, the key is included in the zone but is not used
242 to sign it. If not set, and if the \fB\-G\fP option has not been used, the
243 default is the current date.
244 .INDENT 7.0
245 .TP
246 .B sync date/offset
247 This option sets the date on which CDS and CDNSKEY records that match this key
248 are to be published to the zone.
249 .UNINDENT
250 .UNINDENT
251 .INDENT 0.0
252 .TP
253 .B \-A date/offset
254 This option sets the date on which the key is to be activated. After that date,
255 the key is included in the zone and used to sign it. If not set,
256 and if the \fB\-G\fP option has not been used, the default is the current date.
257 .UNINDENT
258 .INDENT 0.0
259 .TP
260 .B \-R date/offset
261 This option sets the date on which the key is to be revoked. After that date, the
262 key is flagged as revoked. It is included in the zone and
263 is used to sign it.
264 .UNINDENT
265 .INDENT 0.0
266 .TP
267 .B \-I date/offset
268 This option sets the date on which the key is to be retired. After that date, the
269 key is still included in the zone, but it is not used to
270 sign it.
271 .UNINDENT
272 .INDENT 0.0
273 .TP
274 .B \-D date/offset
275 This option sets the date on which the key is to be deleted. After that date, the
276 key is no longer included in the zone. (However, it may remain in the key
277 repository.)
278 .INDENT 7.0
279 .TP
280 .B sync date/offset
281 This option sets the date on which the CDS and CDNSKEY records that match this
282 key are to be deleted.
283 .UNINDENT
284 .UNINDENT
285 .INDENT 0.0
286 .TP
287 .B \-i interval
288 This option sets the prepublication interval for a key. If set, then the
289 publication and activation dates must be separated by at least this
290 much time. If the activation date is specified but the publication
291 date is not, the publication date defaults to this much time
292 before the activation date; conversely, if the publication date is
293 specified but not the activation date, activation is set to
294 this much time after publication.
295 .sp
296 If the key is being created as an explicit successor to another key,
297 then the default prepublication interval is 30 days; otherwise it is
298 zero.
299 .sp
300 As with date offsets, if the argument is followed by one of the
301 suffixes \fBy\fP, \fBmo\fP, \fBw\fP, \fBd\fP, \fBh\fP, or \fBmi\fP, the interval is
302 measured in years, months, weeks, days, hours, or minutes,
303 respectively. Without a suffix, the interval is measured in seconds.
304 .UNINDENT
305 .SH GENERATED KEY FILES
306 .sp
307 When \fBdnssec\-keyfromlabel\fP completes successfully, it prints a string
308 of the form \fBKnnnn.+aaa+iiiii\fP to the standard output. This is an
309 identification string for the key files it has generated.
310 .INDENT 0.0
311 .IP \(bu 2
312 \fBnnnn\fP is the key name.
313 .IP \(bu 2
314 \fBaaa\fP is the numeric representation of the algorithm.
315 .IP \(bu 2
316 \fBiiiii\fP is the key identifier (or footprint).
317 .UNINDENT
318 .sp
319 \fBdnssec\-keyfromlabel\fP creates two files, with names based on the
320 printed string. \fBKnnnn.+aaa+iiiii.key\fP contains the public key, and
321 \fBKnnnn.+aaa+iiiii.private\fP contains the private key.
322 .sp
323 The \fB\&.key\fP file contains a DNS KEY record that can be inserted into a
324 zone file (directly or with an $INCLUDE statement).
325 .sp
326 The \fB\&.private\fP file contains algorithm\-specific fields. For obvious
327 security reasons, this file does not have general read permission.
328 .SH SEE ALSO
329 .sp
330 \fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, \fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, BIND 9 Administrator Reference Manual,
331 \fBRFC 4034\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4034\:.html>, \fBRFC 7512\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc7512\:.html>\&.
332 .SH Author
333 Internet Systems Consortium
334 .SH Copyright
335 2026, Internet Systems Consortium
336 .\" End of generated man page.