man.dnssec-keyfromlabel.html revision 0f863f054cd14a83f8b8464d5976a97df39ee899
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering - Copyright (C) 2000-2016 Internet Systems Consortium, Inc. ("ISC")
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering - This Source Code Form is subject to the terms of the Mozilla Public
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering - License, v. 2.0. If a copy of the MPL was not distributed with this
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek - file, You can obtain one at http://mozilla.org/MPL/2.0/.
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<link rel="prev" href="man.dnssec-importkey.html" title="dnssec-importkey">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<link rel="next" href="man.dnssec-keygen.html" title="dnssec-keygen">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<table width="100%" summary="Navigation header">
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<tr><th colspan="3" align="center"><span class="application">dnssec-keyfromlabel</span></th></tr>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<a accesskey="p" href="man.dnssec-importkey.html">Prev</a>�</td>
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<th width="60%" align="center">Manual pages</th>
aa62a8936f5983770e90b791083d55107659f7a1Lennart Poettering<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-keygen.html">Next</a>
aa62a8936f5983770e90b791083d55107659f7a1Lennart Poettering<a name="man.dnssec-keyfromlabel"></a><div class="titlepage"></div>
aa62a8936f5983770e90b791083d55107659f7a1Lennart Poettering <span class="application">dnssec-keyfromlabel</span>
aa62a8936f5983770e90b791083d55107659f7a1Lennart Poettering — DNSSEC key generation tool
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek <code class="command">dnssec-keyfromlabel</code>
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering {-l <em class="replaceable"><code>label</code></em>}
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-3</code>]
c33b329709ebe2755181980a050d02ec7c81ed87Michal Schmidt [<code class="option">-a <em class="replaceable"><code>algorithm</code></em></code>]
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering [<code class="option">-A <em class="replaceable"><code>date/offset</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-c <em class="replaceable"><code>class</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-D <em class="replaceable"><code>date/offset</code></em></code>]
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering [<code class="option">-D sync <em class="replaceable"><code>date/offset</code></em></code>]
2fd069b18e525860514a70d3ea08410ca122d3e2Zbigniew Jędrzejewski-Szmek [<code class="option">-E <em class="replaceable"><code>engine</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-f <em class="replaceable"><code>flag</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-G</code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-I <em class="replaceable"><code>date/offset</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-i <em class="replaceable"><code>interval</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-k</code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-K <em class="replaceable"><code>directory</code></em></code>]
40beecdb6d1c73e5acb62ebac2ccbfd7891f2418Daniel Mack [<code class="option">-L <em class="replaceable"><code>ttl</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-n <em class="replaceable"><code>nametype</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-P <em class="replaceable"><code>date/offset</code></em></code>]
c33b329709ebe2755181980a050d02ec7c81ed87Michal Schmidt [<code class="option">-P sync <em class="replaceable"><code>date/offset</code></em></code>]
c33b329709ebe2755181980a050d02ec7c81ed87Michal Schmidt [<code class="option">-p <em class="replaceable"><code>protocol</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-R <em class="replaceable"><code>date/offset</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-S <em class="replaceable"><code>key</code></em></code>]
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek [<code class="option">-t <em class="replaceable"><code>type</code></em></code>]
2fd069b18e525860514a70d3ea08410ca122d3e2Zbigniew Jędrzejewski-Szmek [<code class="option">-v <em class="replaceable"><code>level</code></em></code>]
2fd069b18e525860514a70d3ea08410ca122d3e2Zbigniew Jędrzejewski-Szmek [<code class="option">-V</code>]
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering<a name="id-1.14.11.7"></a><h2>DESCRIPTION</h2>
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering <p><span class="command"><strong>dnssec-keyfromlabel</strong></span>
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering generates a key pair of files that referencing a key object stored
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering in a cryptographic hardware service module (HSM). The private key
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering file can be used for DNSSEC signing of zone data as if it were a
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering conventional signing key created by <span class="command"><strong>dnssec-keygen</strong></span>,
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering but the key material is stored within the HSM, and the actual signing
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering takes place there.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek The <code class="option">name</code> of the key is specified on the command
2fd069b18e525860514a70d3ea08410ca122d3e2Zbigniew Jędrzejewski-Szmek line. This must match the name of the zone for which the key is
6524990fdc98370ecba5d9f73e67161e8798c010Lennart Poettering being generated.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek <div class="variablelist"><dl class="variablelist">
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
e801700e9acdde60078eb1d41b41b06369b83541Zbigniew Jędrzejewski-Szmek Selects the cryptographic algorithm. The value of
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering <code class="option">algorithm</code> must be one of RSAMD5, RSASHA1,
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512, ECCGOST,
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering ECDSAP256SHA256 or ECDSAP384SHA384.
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering These values are case insensitive.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek If no algorithm is specified, then RSASHA1 will be used by
2fd069b18e525860514a70d3ea08410ca122d3e2Zbigniew Jędrzejewski-Szmek default, unless the <code class="option">-3</code> option is specified,
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek in which case NSEC3RSASHA1 will be used instead. (If
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek <code class="option">-3</code> is used and an algorithm is specified,
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek that algorithm will be checked for compatibility with NSEC3.)
a5ccdb9884a730553bce96b6d041b28da30d668fLennart Poettering Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement
e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1eLennart Poettering algorithm, and DSA is recommended.
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering Note 2: DH automatically sets the -k flag.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-3</span></dt>
601185b43da638b1c74153deae01dbd518680889Zbigniew Jędrzejewski-Szmek Use an NSEC3-capable algorithm to generate a DNSSEC key.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek If this option is used and no algorithm is explicitly
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek set on the command line, NSEC3RSASHA1 will be used by
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
601185b43da638b1c74153deae01dbd518680889Zbigniew Jędrzejewski-Szmek Specifies the cryptographic hardware to use.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek When BIND is built with OpenSSL PKCS#11 support, this defaults
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek to the string "pkcs11", which identifies an OpenSSL engine
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek that can drive a cryptographic accelerator or hardware service
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek module. When BIND is built with native PKCS#11 cryptography
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek (--enable-native-pkcs11), it defaults to the path of the PKCS#11
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek provider library specified via "--with-pkcs11".
eb9da376d76b48585b3b63b4f91903b54f7abd36Lennart Poettering<dt><span class="term">-l <em class="replaceable"><code>label</code></em></span></dt>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek Specifies the label for a key pair in the crypto hardware.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek When <acronym class="acronym">BIND</acronym> 9 is built with OpenSSL-based
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek PKCS#11 support, the label is an arbitrary string that
601185b43da638b1c74153deae01dbd518680889Zbigniew Jędrzejewski-Szmek identifies a particular key. It may be preceded by an
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek optional OpenSSL engine name, followed by a colon, as in
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek "pkcs11:<em class="replaceable"><code>keylabel</code></em>".
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek When <acronym class="acronym">BIND</acronym> 9 is built with native PKCS#11
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek support, the label is a PKCS#11 URI string in the format
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek "pkcs11:<code class="option">keyword</code>=<em class="replaceable"><code>value</code></em>[<span class="optional">;<code class="option">keyword</code>=<em class="replaceable"><code>value</code></em>;...</span>]"
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek Keywords include "token", which identifies the HSM; "object", which
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek identifies the key; and "pin-source", which identifies a file from
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek which the HSM's PIN code can be obtained. The label will be
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek stored in the on-disk "private" file.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek If the label contains a
eb9da376d76b48585b3b63b4f91903b54f7abd36Lennart Poettering <code class="option">pin-source</code> field, tools using the generated
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek key files will be able to use the HSM for signing and other
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek operations without any need for an operator to manually enter
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek a PIN. Note: Making the HSM's PIN accessible in this manner
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek may reduce the security advantage of using an HSM; be sure
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek this is what you want to do before making use of this feature.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-n <em class="replaceable"><code>nametype</code></em></span></dt>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek Specifies the owner type of the key. The value of
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek <code class="option">nametype</code> must either be ZONE (for a DNSSEC
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek USER (for a key associated with a user(KEY)) or OTHER (DNSKEY).
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek These values are case insensitive.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-C</span></dt>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek Compatibility mode: generates an old-style key, without
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek any metadata. By default, <span class="command"><strong>dnssec-keyfromlabel</strong></span>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek will include the key's creation date in the metadata stored
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek with the private key, and other dates may be set there as well
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek (publication date, activation date, etc). Keys that include
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek this data may be incompatible with older versions of BIND; the
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek <code class="option">-C</code> option suppresses them.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek Indicates that the DNS record containing the key should have
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek the specified class. If not specified, class IN is used.
19adb8a3204fefd91411b5f0f350c8bc6bcf75feZbigniew Jędrzejewski-Szmek<dt><span class="term">-f <em class="replaceable"><code>flag</code></em></span></dt>
6edd7d0a09171ea5ae8e01b7b1cbcb0bdfbfeb16Lennart Poettering Set the specified flag in the flag field of the KEY/DNSKEY record.