dnssec-keyfromlabel.docbook revision a165a17a81ff3285f4f4d79785fafb465e626183
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt [<!ENTITY mdash "—">]>
f70a10508f030b097a9b8afe907a06f9a1e2c4d4Tinderbox User - Copyright (C) 2008-2012, 2014 Internet Systems Consortium, Inc. ("ISC")
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - Permission to use, copy, modify, and/or distribute this software for any
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - purpose with or without fee is hereby granted, provided that the above
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - copyright notice and this permission notice appear in all copies.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt - PERFORMANCE OF THIS SOFTWARE.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt<!-- $Id: dnssec-keyfromlabel.docbook,v 1.21 2011/03/17 01:40:34 each Exp $ -->
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refentryinfo>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </refentryinfo>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refentrytitle><application>dnssec-keyfromlabel</application></refentrytitle>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refnamediv>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refname><application>dnssec-keyfromlabel</application></refname>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refpurpose>DNSSEC key generation tool</refpurpose>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </refnamediv>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </copyright>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <refsynopsisdiv>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <cmdsynopsis>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg choice="req">-l <replaceable class="parameter">label</replaceable></arg>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <arg><option>-a <replaceable class="parameter">algorithm</replaceable></option></arg>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <arg><option>-A <replaceable class="parameter">date/offset</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-E <replaceable class="parameter">engine</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-f <replaceable class="parameter">flag</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-I <replaceable class="parameter">date/offset</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-L <replaceable class="parameter">ttl</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-n <replaceable class="parameter">nametype</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-p <replaceable class="parameter">protocol</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-R <replaceable class="parameter">date/offset</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <arg><option>-v <replaceable class="parameter">level</replaceable></option></arg>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </cmdsynopsis>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </refsynopsisdiv>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt gets keys with the given label from a crypto hardware and builds
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt key files for DNSSEC (Secure DNS), as defined in RFC 2535
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt and RFC 4034.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt The <option>name</option> of the key is specified on the command
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt line. This must match the name of the zone for which the key is
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt being generated.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <variablelist>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <term>-a <replaceable class="parameter">algorithm</replaceable></term>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt Selects the cryptographic algorithm. The value of
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <option>algorithm</option> must be one of RSAMD5, RSASHA1,
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512, ECCGOST,
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt ECDSAP256SHA256 or ECDSAP384SHA384.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt These values are case insensitive.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt If no algorithm is specified, then RSASHA1 will be used by
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt default, unless the <option>-3</option> option is specified,
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt in which case NSEC3RSASHA1 will be used instead. (If
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <option>-3</option> is used and an algorithm is specified,
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt that algorithm will be checked for compatibility with NSEC3.)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt algorithm, and DSA is recommended.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Note 2: DH automatically sets the -k flag.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt Use an NSEC3-capable algorithm to generate a DNSSEC key.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt If this option is used and no algorithm is explicitly
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt set on the command line, NSEC3RSASHA1 will be used by
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <term>-E <replaceable class="parameter">engine</replaceable></term>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Specifies the cryptographic hardware to use.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt When BIND is built with OpenSSL PKCS#11 support, this defaults
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt to the string "pkcs11", which identifies an OpenSSL engine
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt that can drive a cryptographic accelerator or hardware service
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt module. When BIND is built with native PKCS#11 cryptography
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt (--enable-native-pkcs11), it defaults to the path of the PKCS#11
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt provider library specified via "--with-pkcs11".
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <term>-l <replaceable class="parameter">label</replaceable></term>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Specifies the label for a key pair in the crypto hardware.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt When <acronym>BIND</acronym> 9 is built with OpenSSL-based
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt PKCS#11 support, the label is an arbitrary string that
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt identifies a particular key. It may be preceded by an
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt optional OpenSSL engine name, followed by a colon, as in
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt When <acronym>BIND</acronym> 9 is built with native PKCS#11
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt support, the label is a PKCS#11 URI string in the format
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt "pkcs11:<option>keyword</option>=<replaceable>value</replaceable><optional>;<option>keyword</option>=<replaceable>value</replaceable>;...</optional>"
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Keywords include "token", which identifies the HSM; "object", which
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt identifies the key; and "pin-source", which identifies a file from
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt which the HSM's PIN code can be obtained. The label will be
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt stored in the on-disk "private" file.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt If the label contains a
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <option>pin-source</option> field, tools using the generated
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt key files will be able to use the HSM for signing and other
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt operations without any need for an operator to manually enter
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt a PIN. Note: Making the HSM's PIN accessible in this manner
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt may reduce the security advantage of using an HSM; be sure
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt this is what you want to do before making use of this feature.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <term>-n <replaceable class="parameter">nametype</replaceable></term>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Specifies the owner type of the key. The value of
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <option>nametype</option> must either be ZONE (for a DNSSEC
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt a host (KEY)),
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt USER (for a key associated with a user(KEY)) or OTHER (DNSKEY).
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt These values are case insensitive.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Compatibility mode: generates an old-style key, without
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt any metadata. By default, <command>dnssec-keyfromlabel</command>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt will include the key's creation date in the metadata stored
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt with the private key, and other dates may be set there as well
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt (publication date, activation date, etc). Keys that include
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt this data may be incompatible with older versions of BIND; the
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt </varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <term>-c <replaceable class="parameter">class</replaceable></term>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt Indicates that the DNS record containing the key should have
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt the specified class. If not specified, class IN is used.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt </varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <varlistentry>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt <term>-f <replaceable class="parameter">flag</replaceable></term>
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt Set the specified flag in the flag field of the KEY/DNSKEY record.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt The only recognized flags are KSK (Key Signing Key) and REVOKE.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Generate a key, but do not publish it or sign with it. This
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt option is incompatible with -P and -A.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Prints a short summary of the options and arguments to
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <term>-K <replaceable class="parameter">directory</replaceable></term>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Sets the directory in which the key files are to be written.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt <varlistentry>
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt Generate KEY records rather than DNSKEY records.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt </varlistentry>