]> CyberLeo.Net >> Repos - FreeBSD/releng/8.0.git/blob - contrib/bind9/bin/dnssec/dnssec-keyfromlabel.8
Adjust to reflect 8.0-RELEASE.
[FreeBSD/releng/8.0.git] / contrib / bind9 / bin / dnssec / dnssec-keyfromlabel.8
1 .\" Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC")
2 .\" 
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\" 
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 .\" PERFORMANCE OF THIS SOFTWARE.
14 .\"
15 .\" $Id: dnssec-keyfromlabel.8,v 1.6 2008/11/08 01:11:47 tbox Exp $
16 .\"
17 .hy 0
18 .ad l
19 .\"     Title: dnssec\-keyfromlabel
20 .\"    Author: 
21 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
22 .\"      Date: February 8, 2008
23 .\"    Manual: BIND9
24 .\"    Source: BIND9
25 .\"
26 .TH "DNSSEC\-KEYFROMLABEL" "8" "February 8, 2008" "BIND9" "BIND9"
27 .\" disable hyphenation
28 .nh
29 .\" disable justification (adjust text to left margin only)
30 .ad l
31 .SH "NAME"
32 dnssec\-keyfromlabel \- DNSSEC key generation tool
33 .SH "SYNOPSIS"
34 .HP 20
35 \fBdnssec\-keyfromlabel\fR {\-a\ \fIalgorithm\fR} {\-l\ \fIlabel\fR} [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-f\ \fR\fB\fIflag\fR\fR] [\fB\-k\fR] [\fB\-n\ \fR\fB\fInametype\fR\fR] [\fB\-p\ \fR\fB\fIprotocol\fR\fR] [\fB\-t\ \fR\fB\fItype\fR\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] {name}
36 .SH "DESCRIPTION"
37 .PP
38 \fBdnssec\-keyfromlabel\fR
39 gets keys with the given label from a crypto hardware and builds key files for DNSSEC (Secure DNS), as defined in RFC 2535 and RFC 4034.
40 .SH "OPTIONS"
41 .PP
42 \-a \fIalgorithm\fR
43 .RS 4
44 Selects the cryptographic algorithm. The value of
45 \fBalgorithm\fR
46 must be one of RSAMD5 (RSA) or RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA or DH (Diffie Hellman). These values are case insensitive.
47 .sp
48 Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement algorithm, and DSA is recommended.
49 .sp
50 Note 2: DH automatically sets the \-k flag.
51 .RE
52 .PP
53 \-l \fIlabel\fR
54 .RS 4
55 Specifies the label of keys in the crypto hardware (PKCS#11 device).
56 .RE
57 .PP
58 \-n \fInametype\fR
59 .RS 4
60 Specifies the owner type of the key. The value of
61 \fBnametype\fR
62 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.
63 .RE
64 .PP
65 \-c \fIclass\fR
66 .RS 4
67 Indicates that the DNS record containing the key should have the specified class. If not specified, class IN is used.
68 .RE
69 .PP
70 \-f \fIflag\fR
71 .RS 4
72 Set the specified flag in the flag field of the KEY/DNSKEY record. The only recognized flag is KSK (Key Signing Key) DNSKEY.
73 .RE
74 .PP
75 \-h
76 .RS 4
77 Prints a short summary of the options and arguments to
78 \fBdnssec\-keygen\fR.
79 .RE
80 .PP
81 \-k
82 .RS 4
83 Generate KEY records rather than DNSKEY records.
84 .RE
85 .PP
86 \-p \fIprotocol\fR
87 .RS 4
88 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.
89 .RE
90 .PP
91 \-t \fItype\fR
92 .RS 4
93 Indicates the use of the key.
94 \fBtype\fR
95 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.
96 .RE
97 .PP
98 \-v \fIlevel\fR
99 .RS 4
100 Sets the debugging level.
101 .RE
102 .SH "GENERATED KEY FILES"
103 .PP
104 When
105 \fBdnssec\-keyfromlabel\fR
106 completes successfully, it prints a string of the form
107 \fIKnnnn.+aaa+iiiii\fR
108 to the standard output. This is an identification string for the key files it has generated.
109 .TP 4
110 \(bu
111 \fInnnn\fR
112 is the key name.
113 .TP 4
114 \(bu
115 \fIaaa\fR
116 is the numeric representation of the algorithm.
117 .TP 4
118 \(bu
119 \fIiiiii\fR
120 is the key identifier (or footprint).
121 .PP
122 \fBdnssec\-keyfromlabel\fR
123 creates two files, with names based on the printed string.
124 \fIKnnnn.+aaa+iiiii.key\fR
125 contains the public key, and
126 \fIKnnnn.+aaa+iiiii.private\fR
127 contains the private key.
128 .PP
129 The
130 \fI.key\fR
131 file contains a DNS KEY record that can be inserted into a zone file (directly or with a $INCLUDE statement).
132 .PP
133 The
134 \fI.private\fR
135 file contains algorithm specific fields. For obvious security reasons, this file does not have general read permission.
136 .SH "SEE ALSO"
137 .PP
138 \fBdnssec\-keygen\fR(8),
139 \fBdnssec\-signzone\fR(8),
140 BIND 9 Administrator Reference Manual,
141 RFC 2539,
142 RFC 2845,
143 RFC 4033.
144 .SH "AUTHOR"
145 .PP
146 Internet Systems Consortium
147 .SH "COPYRIGHT"
148 Copyright \(co 2008 Internet Systems Consortium, Inc. ("ISC")
149 .br