bind - Upgraded vendor branch to 9.5.2-P1
[dragonfly.git] / contrib / bind-9.5.2 / bin / dnssec / dnssec-keygen.8
1 .\" Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000-2003 Internet Software Consortium.
3 .\" 
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.
7 .\" 
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.
15 .\"
16 .\" $Id: dnssec-keygen.8,v 1.38.130.3 2009/07/11 01:43:27 tbox Exp $
17 .\"
18 .hy 0
19 .ad l
20 .\"     Title: dnssec\-keygen
21 .\"    Author: 
22 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
23 .\"      Date: June 30, 2000
24 .\"    Manual: BIND9
25 .\"    Source: BIND9
26 .\"
27 .TH "DNSSEC\-KEYGEN" "8" "June 30, 2000" "BIND9" "BIND9"
28 .\" disable hyphenation
29 .nh
30 .\" disable justification (adjust text to left margin only)
31 .ad l
32 .SH "NAME"
33 dnssec\-keygen \- DNSSEC key generation tool
34 .SH "SYNOPSIS"
35 .HP 14
36 \fBdnssec\-keygen\fR {\-a\ \fIalgorithm\fR} {\-b\ \fIkeysize\fR} {\-n\ \fInametype\fR} [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-e\fR] [\fB\-f\ \fR\fB\fIflag\fR\fR] [\fB\-g\ \fR\fB\fIgenerator\fR\fR] [\fB\-h\fR] [\fB\-k\fR] [\fB\-p\ \fR\fB\fIprotocol\fR\fR] [\fB\-r\ \fR\fB\fIrandomdev\fR\fR] [\fB\-s\ \fR\fB\fIstrength\fR\fR] [\fB\-t\ \fR\fB\fItype\fR\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] {name}
37 .SH "DESCRIPTION"
38 .PP
39 \fBdnssec\-keygen\fR
40 generates keys for DNSSEC (Secure DNS), as defined in RFC 2535 and RFC 4034. It can also generate keys for use with TSIG (Transaction Signatures), as defined in RFC 2845.
41 .SH "OPTIONS"
42 .PP
43 \-a \fIalgorithm\fR
44 .RS 4
45 Selects the cryptographic algorithm. The value of
46 \fBalgorithm\fR
47 must be one of RSAMD5 (RSA) or RSASHA1, DSA, DH (Diffie Hellman), or HMAC\-MD5. These values are case insensitive.
48 .sp
49 Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement algorithm, and DSA is recommended. For TSIG, HMAC\-MD5 is mandatory.
50 .sp
51 Note 2: HMAC\-MD5 and DH automatically set the \-k flag.
52 .RE
53 .PP
54 \-b \fIkeysize\fR
55 .RS 4
56 Specifies the number of bits in the key. The choice of key size depends on the algorithm used. RSAMD5 / RSASHA1 keys must be between 512 and 2048 bits. Diffie Hellman keys must be between 128 and 4096 bits. DSA keys must be between 512 and 1024 bits and an exact multiple of 64. HMAC\-MD5 keys must be between 1 and 512 bits.
57 .RE
58 .PP
59 \-n \fInametype\fR
60 .RS 4
61 Specifies the owner type of the key. The value of
62 \fBnametype\fR
63 must either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with a host (KEY)), USER (for a key associated with a user(KEY)) or OTHER (DNSKEY). These values are case insensitive. Defaults to ZONE for DNSKEY generation.
64 .RE
65 .PP
66 \-c \fIclass\fR
67 .RS 4
68 Indicates that the DNS record containing the key should have the specified class. If not specified, class IN is used.
69 .RE
70 .PP
71 \-e
72 .RS 4
73 If generating an RSAMD5/RSASHA1 key, use a large exponent.
74 .RE
75 .PP
76 \-f \fIflag\fR
77 .RS 4
78 Set the specified flag in the flag field of the KEY/DNSKEY record. The only recognized flag is KSK (Key Signing Key) DNSKEY.
79 .RE
80 .PP
81 \-g \fIgenerator\fR
82 .RS 4
83 If generating a Diffie Hellman key, use this generator. Allowed values are 2 and 5. If no generator is specified, a known prime from RFC 2539 will be used if possible; otherwise the default is 2.
84 .RE
85 .PP
86 \-h
87 .RS 4
88 Prints a short summary of the options and arguments to
89 \fBdnssec\-keygen\fR.
90 .RE
91 .PP
92 \-k
93 .RS 4
94 Generate KEY records rather than DNSKEY records.
95 .RE
96 .PP
97 \-p \fIprotocol\fR
98 .RS 4
99 Sets the protocol value for the generated key. The protocol is a number between 0 and 255. The default is 3 (DNSSEC). Other possible values for this argument are listed in RFC 2535 and its successors.
100 .RE
101 .PP
102 \-r \fIrandomdev\fR
103 .RS 4
104 Specifies the source of randomness. If the operating system does not provide a
105 \fI/dev/random\fR
106 or equivalent device, the default source of randomness is keyboard input.
107 \fIrandomdev\fR
108 specifies the name of a character device or file containing random data to be used instead of the default. The special value
109 \fIkeyboard\fR
110 indicates that keyboard input should be used.
111 .RE
112 .PP
113 \-s \fIstrength\fR
114 .RS 4
115 Specifies the strength value of the key. The strength is a number between 0 and 15, and currently has no defined purpose in DNSSEC.
116 .RE
117 .PP
118 \-t \fItype\fR
119 .RS 4
120 Indicates the use of the key.
121 \fBtype\fR
122 must be one of AUTHCONF, NOAUTHCONF, NOAUTH, or NOCONF. The default is AUTHCONF. AUTH refers to the ability to authenticate data, and CONF the ability to encrypt data.
123 .RE
124 .PP
125 \-v \fIlevel\fR
126 .RS 4
127 Sets the debugging level.
128 .RE
129 .SH "GENERATED KEYS"
130 .PP
131 When
132 \fBdnssec\-keygen\fR
133 completes successfully, it prints a string of the form
134 \fIKnnnn.+aaa+iiiii\fR
135 to the standard output. This is an identification string for the key it has generated.
136 .TP 4
137 \(bu
138 \fInnnn\fR
139 is the key name.
140 .TP 4
141 \(bu
142 \fIaaa\fR
143 is the numeric representation of the algorithm.
144 .TP 4
145 \(bu
146 \fIiiiii\fR
147 is the key identifier (or footprint).
148 .PP
149 \fBdnssec\-keygen\fR
150 creates two files, with names based on the printed string.
151 \fIKnnnn.+aaa+iiiii.key\fR
152 contains the public key, and
153 \fIKnnnn.+aaa+iiiii.private\fR
154 contains the private key.
155 .PP
156 The
157 \fI.key\fR
158 file contains a DNS KEY record that can be inserted into a zone file (directly or with a $INCLUDE statement).
159 .PP
160 The
161 \fI.private\fR
162 file contains algorithm\-specific fields. For obvious security reasons, this file does not have general read permission.
163 .PP
164 Both
165 \fI.key\fR
166 and
167 \fI.private\fR
168 files are generated for symmetric encryption algorithms such as HMAC\-MD5, even though the public and private key are equivalent.
169 .SH "EXAMPLE"
170 .PP
171 To generate a 768\-bit DSA key for the domain
172 \fBexample.com\fR, the following command would be issued:
173 .PP
174 \fBdnssec\-keygen \-a DSA \-b 768 \-n ZONE example.com\fR
175 .PP
176 The command would print a string of the form:
177 .PP
178 \fBKexample.com.+003+26160\fR
179 .PP
180 In this example,
181 \fBdnssec\-keygen\fR
182 creates the files
183 \fIKexample.com.+003+26160.key\fR
184 and
185 \fIKexample.com.+003+26160.private\fR.
186 .SH "SEE ALSO"
187 .PP
188 \fBdnssec\-signzone\fR(8),
189 BIND 9 Administrator Reference Manual,
190 RFC 2539,
191 RFC 2845,
192 RFC 4033.
193 .SH "AUTHOR"
194 .PP
195 Internet Systems Consortium
196 .SH "COPYRIGHT"
197 Copyright \(co 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
198 .br
199 Copyright \(co 2000\-2003 Internet Software Consortium.
200 .br