236N/A<!
DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 236N/A [<!ENTITY mdash "—">]>
236N/A - Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC") 236N/A - Permission to use, copy, modify, and/or distribute this software for any 236N/A - purpose with or without fee is hereby granted, provided that the above 236N/A - copyright notice and this permission notice appear in all copies. 236N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 236N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 236N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 236N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 236N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 236N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 236N/A - PERFORMANCE OF THIS SOFTWARE. 3817N/A <
date>february 8, 2008</
date>
236N/A <
refentrytitle><
application>dnssec-keyfromlabel</
application></
refentrytitle>
236N/A <
manvolnum>8</
manvolnum>
406N/A <
refmiscinfo>BIND9</
refmiscinfo>
844N/A <
refname><
application>dnssec-keyfromlabel</
application></
refname>
844N/A <
refpurpose>DNSSEC key generation tool</
refpurpose>
3817N/A <
holder>Internet Systems Consortium, Inc. ("ISC")</
holder>
236N/A <
command>dnssec-keyfromlabel</
command>
236N/A <
arg choice="req">-a <
replaceable class="parameter">algorithm</
replaceable></
arg>
236N/A <
arg choice="req">-l <
replaceable class="parameter">label</
replaceable></
arg>
236N/A <
arg><
option>-c <
replaceable class="parameter">class</
replaceable></
option></
arg>
1520N/A <
arg><
option>-f <
replaceable class="parameter">flag</
replaceable></
option></
arg>
236N/A <
arg><
option>-k</
option></
arg>
236N/A <
arg><
option>-n <
replaceable class="parameter">nametype</
replaceable></
option></
arg>
3477N/A <
arg><
option>-p <
replaceable class="parameter">protocol</
replaceable></
option></
arg>
3477N/A <
arg><
option>-t <
replaceable class="parameter">type</
replaceable></
option></
arg>
1530N/A <
arg><
option>-v <
replaceable class="parameter">level</
replaceable></
option></
arg>
236N/A <
arg choice="req">name</
arg>
236N/A <
title>DESCRIPTION</
title>
3817N/A <
para><
command>dnssec-keyfromlabel</
command>
3817N/A gets keys with the given label from a crypto hardware and builds
3817N/A key files for DNSSEC (Secure DNS), as defined in RFC 2535
<
term>-a <
replaceable class="parameter">algorithm</
replaceable></
term>
Selects the cryptographic algorithm. The value of
<
option>algorithm</
option> must be one of RSAMD5 (RSA)
or RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA or DH (Diffie Hellman).
These values are case insensitive.
Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement
algorithm, and DSA is recommended.
Note 2: DH automatically sets the -k flag.
<
term>-l <
replaceable class="parameter">label</
replaceable></
term>
Specifies the label of keys in the crypto hardware
<
term>-n <
replaceable class="parameter">nametype</
replaceable></
term>
Specifies the owner type of the key. The value of
<
option>nametype</
option> must either be ZONE (for a DNSSEC
zone key (
KEY/
DNSKEY)), HOST or ENTITY (for a key associated with
USER (for a key associated with a user(KEY)) or OTHER (DNSKEY).
<
term>-c <
replaceable class="parameter">class</
replaceable></
term>
Indicates that the DNS record containing the key should have
the specified class. If not specified, class IN is used.
<
term>-f <
replaceable class="parameter">flag</
replaceable></
term>
Set the specified flag in the flag field of the
KEY/
DNSKEY record.
The only recognized flag is KSK (Key Signing Key) DNSKEY.
Prints a short summary of the options and arguments to
<
command>dnssec-keygen</
command>.
Generate KEY records rather than DNSKEY records.
<
term>-p <
replaceable class="parameter">protocol</
replaceable></
term>
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.
<
term>-t <
replaceable class="parameter">type</
replaceable></
term>
Indicates the use of the key. <
option>type</
option> 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.
<
term>-v <
replaceable class="parameter">level</
replaceable></
term>
Sets the debugging level.
<
title>GENERATED KEY FILES</
title>
When <
command>dnssec-keyfromlabel</
command> completes
it prints a string of the form <
filename>Knnnn.+aaa+iiiii</
filename>
to the standard output. This is an identification string for
the key files it has generated.
<
para><
filename>nnnn</
filename> is the key name.
<
para><
filename>aaa</
filename> is the numeric representation
<
para><
filename>iiiii</
filename> is the key identifier (or
<
para><
command>dnssec-keyfromlabel</
command>
creates two files, with names based
on the printed string. <
filename>Knnnn.+aaa+
iiiii.key</
filename>
contains the public key, and
The <
filename>.key</
filename> file contains a DNS KEY record
can be inserted into a zone file (directly or with a $INCLUDE
The <
filename>.private</
filename> file contains algorithm
fields. For obvious security reasons, this file does not have
<
refentrytitle>dnssec-keygen</
refentrytitle><
manvolnum>8</
manvolnum>
<
refentrytitle>dnssec-signzone</
refentrytitle><
manvolnum>8</
manvolnum>
<
citetitle>BIND 9 Administrator Reference Manual</
citetitle>,
<
citetitle>RFC 2539</
citetitle>,
<
citetitle>RFC 2845</
citetitle>,
<
citetitle>RFC 4033</
citetitle>.
<
para><
corpauthor>Internet Systems Consortium</
corpauthor>