man.dnssec-keyfromlabel.html revision 582f8b9a8d170a80ef67475bddb8ad5cf7cd7cad
2N/A<!--
2N/A - Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
2N/A - Copyright (C) 2000-2003 Internet Software Consortium.
2N/A -
2N/A - Permission to use, copy, modify, and distribute this software for any
2N/A - purpose with or without fee is hereby granted, provided that the above
2N/A - copyright notice and this permission notice appear in all copies.
2N/A -
2N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2N/A - PERFORMANCE OF THIS SOFTWARE.
2N/A-->
2N/A<!-- $Id: man.dnssec-keyfromlabel.html,v 1.30 2008/11/07 02:28:49 marka Exp $ -->
2N/A<html>
2N/A<head>
2N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
2N/A<title>dnssec-keyfromlabel</title>
2N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
2N/A<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
2N/A<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
2N/A<link rel="prev" href="man.dnssec-dsfromkey.html" title="host">
2N/A<link rel="next" href="man.dnssec-keygen.html" title="dnssec-keygen">
2N/A</head>
2N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
2N/A<div class="navheader">
2N/A<table width="100%" summary="Navigation header">
2N/A<tr><th colspan="3" align="center"><span class="application">dnssec-keyfromlabel</span></th></tr>
2N/A<tr>
2N/A<td width="20%" align="left">
2N/A<a accesskey="p" href="man.dnssec-dsfromkey.html">Prev</a>�</td>
2N/A<th width="60%" align="center">Manual pages</th>
2N/A<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-keygen.html">Next</a>
2N/A</td>
2N/A</tr>
2N/A</table>
2N/A<hr>
2N/A</div>
2N/A<div class="refentry" lang="en">
2N/A<a name="man.dnssec-keyfromlabel"></a><div class="titlepage"></div>
2N/A<div class="refnamediv">
2N/A<h2>Name</h2>
2N/A<p><span class="application">dnssec-keyfromlabel</span> &#8212; DNSSEC key generation tool</p>
2N/A</div>
2N/A<div class="refsynopsisdiv">
2N/A<h2>Synopsis</h2>
2N/A<div class="cmdsynopsis"><p><code class="command">dnssec-keyfromlabel</code> {-a <em class="replaceable"><code>algorithm</code></em>} {-l <em class="replaceable"><code>label</code></em>} [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>flag</code></em></code>] [<code class="option">-k</code>] [<code class="option">-n <em class="replaceable"><code>nametype</code></em></code>] [<code class="option">-p <em class="replaceable"><code>protocol</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] {name}</p></div>
2N/A</div>
2N/A<div class="refsect1" lang="en">
2N/A<a name="id2602585"></a><h2>DESCRIPTION</h2>
2N/A<p><span><strong class="command">dnssec-keyfromlabel</strong></span>
2N/A gets keys with the given label from a crypto hardware and builds
2N/A key files for DNSSEC (Secure DNS), as defined in RFC 2535
2N/A and RFC 4034.
2N/A </p>
2N/A</div>
2N/A<div class="refsect1" lang="en">
2N/A<a name="id2602599"></a><h2>OPTIONS</h2>
2N/A<div class="variablelist"><dl>
2N/A<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
2N/A<dd>
2N/A<p>
2N/A Selects the cryptographic algorithm. The value of
2N/A <code class="option">algorithm</code> must be one of RSAMD5 (RSA)
2N/A or RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA or DH (Diffie Hellman).
2N/A These values are case insensitive.
2N/A </p>
2N/A<p>
2N/A Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement
2N/A algorithm, and DSA is recommended.
2N/A </p>
2N/A<p>
2N/A Note 2: DH automatically sets the -k flag.
2N/A </p>
2N/A</dd>
2N/A<dt><span class="term">-l <em class="replaceable"><code>label</code></em></span></dt>
2N/A<dd><p>
2N/A Specifies the label of keys in the crypto hardware
2N/A (PKCS#11 device).
2N/A </p></dd>
2N/A<dt><span class="term">-n <em class="replaceable"><code>nametype</code></em></span></dt>
2N/A<dd><p>
2N/A Specifies the owner type of the key. The value of
2N/A <code class="option">nametype</code> must either be ZONE (for a DNSSEC
2N/A zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with
2N/A a host (KEY)),
2N/A USER (for a key associated with a user(KEY)) or OTHER (DNSKEY).
2N/A These values are
2N/A case insensitive.
2N/A </p></dd>
2N/A<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
2N/A<dd><p>
2N/A Indicates that the DNS record containing the key should have
2N/A the specified class. If not specified, class IN is used.
2N/A </p></dd>
2N/A<dt><span class="term">-f <em class="replaceable"><code>flag</code></em></span></dt>
2N/A<dd><p>
2N/A Set the specified flag in the flag field of the KEY/DNSKEY record.
2N/A The only recognized flag is KSK (Key Signing Key) DNSKEY.
2N/A </p></dd>
2N/A<dt><span class="term">-h</span></dt>
2N/A<dd><p>
2N/A Prints a short summary of the options and arguments to
2N/A <span><strong class="command">dnssec-keygen</strong></span>.
2N/A </p></dd>
2N/A<dt><span class="term">-k</span></dt>
2N/A<dd><p>
2N/A Generate KEY records rather than DNSKEY records.
2N/A </p></dd>
2N/A<dt><span class="term">-p <em class="replaceable"><code>protocol</code></em></span></dt>
2N/A<dd><p>
2N/A Sets the protocol value for the generated key. The protocol
2N/A is a number between 0 and 255. The default is 3 (DNSSEC).
2N/A Other possible values for this argument are listed in
2N/A RFC 2535 and its successors.
2N/A </p></dd>
2N/A<dt><span class="term">-t <em class="replaceable"><code>type</code></em></span></dt>
2N/A<dd><p>
2N/A Indicates the use of the key. <code class="option">type</code> must be
2N/A one of AUTHCONF, NOAUTHCONF, NOAUTH, or NOCONF. The default
2N/A is AUTHCONF. AUTH refers to the ability to authenticate
2N/A data, and CONF the ability to encrypt data.
2N/A </p></dd>
2N/A<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
2N/A<dd><p>
2N/A Sets the debugging level.
2N/A </p></dd>
2N/A</dl></div>
2N/A</div>
2N/A<div class="refsect1" lang="en">
2N/A<a name="id2602864"></a><h2>GENERATED KEY FILES</h2>
2N/A<p>
2N/A When <span><strong class="command">dnssec-keyfromlabel</strong></span> completes
2N/A successfully,
2N/A it prints a string of the form <code class="filename">Knnnn.+aaa+iiiii</code>
2N/A to the standard output. This is an identification string for
2N/A the key files it has generated.
2N/A </p>
2N/A<div class="itemizedlist"><ul type="disc">
2N/A<li><p><code class="filename">nnnn</code> is the key name.
2N/A </p></li>
2N/A<li><p><code class="filename">aaa</code> is the numeric representation
2N/A of the
2N/A algorithm.
2N/A </p></li>
2N/A<li><p><code class="filename">iiiii</code> is the key identifier (or
2N/A footprint).
2N/A </p></li>
2N/A</ul></div>
2N/A<p><span><strong class="command">dnssec-keyfromlabel</strong></span>
2N/A creates two files, with names based
2N/A on the printed string. <code class="filename">Knnnn.+aaa+iiiii.key</code>
2N/A contains the public key, and
2N/A <code class="filename">Knnnn.+aaa+iiiii.private</code> contains the
2N/A private
2N/A key.
2N/A </p>
2N/A<p>
2N/A The <code class="filename">.key</code> file contains a DNS KEY record
2N/A that
2N/A can be inserted into a zone file (directly or with a $INCLUDE
2N/A statement).
2N/A </p>
2N/A<p>
2N/A The <code class="filename">.private</code> file contains algorithm
2N/A specific
2N/A fields. For obvious security reasons, this file does not have
2N/A general read permission.
2N/A </p>
2N/A</div>
2N/A<div class="refsect1" lang="en">
2N/A<a name="id2602957"></a><h2>SEE ALSO</h2>
2N/A<p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
2N/A <span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
2N/A <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
2N/A <em class="citetitle">RFC 2539</em>,
2N/A <em class="citetitle">RFC 2845</em>,
2N/A <em class="citetitle">RFC 4033</em>.
2N/A </p>
2N/A</div>
2N/A<div class="refsect1" lang="en">
2N/A<a name="id2602997"></a><h2>AUTHOR</h2>
2N/A<p><span class="corpauthor">Internet Systems Consortium</span>
2N/A </p>
2N/A</div>
2N/A</div>
2N/A<div class="navfooter">
2N/A<hr>
2N/A<table width="100%" summary="Navigation footer">
2N/A<tr>
2N/A<td width="40%" align="left">
2N/A<a accesskey="p" href="man.dnssec-dsfromkey.html">Prev</a>�</td>
2N/A<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
2N/A<td width="40%" align="right">�<a accesskey="n" href="man.dnssec-keygen.html">Next</a>
2N/A</td>
2N/A</tr>
2N/A<tr>
2N/A<td width="40%" align="left" valign="top">host�</td>
2N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
2N/A<td width="40%" align="right" valign="top">�<span class="application">dnssec-keygen</span>
2N/A</td>
2N/A</tr>
2N/A</table>
2N/A</div>
2N/A</body>
2N/A</html>
2N/A