Blame bin/dnssec/dnssec-importkey.docbook

Packit 5ce601
Packit 5ce601
 - Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit 5ce601
 -
Packit 5ce601
 - This Source Code Form is subject to the terms of the Mozilla Public
Packit 5ce601
 - License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service 704ed8
 - file, you can obtain one at https://mozilla.org/MPL/2.0/.
Packit 5ce601
 -
Packit 5ce601
 - See the COPYRIGHT file distributed with this work for additional
Packit 5ce601
 - information regarding copyright ownership.
Packit 5ce601
-->
Packit 5ce601
Packit 5ce601
Packit Service d3afd5
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.dnssec-importkey">
Packit 5ce601
  <info>
Packit 5ce601
    <date>2014-02-20</date>
Packit 5ce601
  </info>
Packit 5ce601
  <refentryinfo>
Packit 5ce601
    <date>August 21, 2015</date>
Packit 5ce601
    <corpname>ISC</corpname>
Packit 5ce601
    <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
Packit 5ce601
  </refentryinfo>
Packit 5ce601
Packit 5ce601
  <refmeta>
Packit 5ce601
    <refentrytitle><application>dnssec-importkey</application></refentrytitle>
Packit 5ce601
    <manvolnum>8</manvolnum>
Packit Service d3afd5
    <refmiscinfo>BIND9</refmiscinfo>
Packit 5ce601
  </refmeta>
Packit 5ce601
Packit 5ce601
  <refnamediv>
Packit 5ce601
    <refname><application>dnssec-importkey</application></refname>
Packit 5ce601
    <refpurpose>import DNSKEY records from external systems so they can be managed</refpurpose>
Packit 5ce601
  </refnamediv>
Packit 5ce601
Packit 5ce601
  <docinfo>
Packit 5ce601
    <copyright>
Packit 5ce601
      <year>2013</year>
Packit 5ce601
      <year>2014</year>
Packit 5ce601
      <year>2015</year>
Packit 5ce601
      <year>2016</year>
Packit 5ce601
      <year>2018</year>
Packit 5ce601
      <year>2019</year>
Packit 5ce601
      <year>2020</year>
Packit 5ce601
      <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
Packit 5ce601
    </copyright>
Packit 5ce601
  </docinfo>
Packit 5ce601
Packit 5ce601
  <refsynopsisdiv>
Packit 5ce601
    <cmdsynopsis sepchar=" ">
Packit 5ce601
      <command>dnssec-importkey</command>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">ttl</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-P sync <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-D sync <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-h</option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-V</option></arg>
Packit 5ce601
      <arg choice="req" rep="norepeat"><option>keyfile</option></arg>
Packit 5ce601
    </cmdsynopsis>
Packit 5ce601
    <cmdsynopsis sepchar=" ">
Packit 5ce601
      <command>dnssec-importkey</command>
Packit 5ce601
      <arg choice="req" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-K <replaceable class="parameter">directory</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-L <replaceable class="parameter">ttl</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-P <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-P sync <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-D <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-D sync <replaceable class="parameter">date/offset</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-h</option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-v <replaceable class="parameter">level</replaceable></option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>-V</option></arg>
Packit 5ce601
      <arg choice="opt" rep="norepeat"><option>dnsname</option></arg>
Packit 5ce601
    </cmdsynopsis>
Packit 5ce601
  </refsynopsisdiv>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>DESCRIPTION</title></info>
Packit 5ce601
Packit 5ce601
    <para><command>dnssec-importkey</command>
Packit 5ce601
      reads a public DNSKEY record and generates a pair of
Packit 5ce601
      .key/.private files.  The DNSKEY record may be read from an
Packit 5ce601
      existing .key file, in which case a corresponding .private file
Packit 5ce601
      will be generated, or it may be read from any other file or
Packit 5ce601
      from the standard input, in which case both .key and .private
Packit 5ce601
      files will be generated.
Packit 5ce601
    </para>
Packit 5ce601
    <para>
Packit 5ce601
      The newly-created .private file does <emphasis>not</emphasis>
Packit 5ce601
      contain private key data, and cannot be used for signing.
Packit 5ce601
      However, having a .private file makes it possible to set
Packit 5ce601
      publication (<option>-P</option>) and deletion
Packit 5ce601
      (<option>-D</option>) times for the key, which means the
Packit 5ce601
      public key can be added to and removed from the DNSKEY RRset
Packit 5ce601
      on schedule even if the true private key is stored offline.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>OPTIONS</title></info>
Packit 5ce601
Packit 5ce601
Packit 5ce601
    <variablelist>
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-f <replaceable class="parameter">filename</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Zone file mode: instead of a public keyfile name, the argument
Packit 5ce601
	    is the DNS domain name of a zone master file, which can be read
Packit 5ce601
	    from <option>file</option>.  If the domain name is the same as
Packit 5ce601
	    <option>file</option>, then it may be omitted.
Packit 5ce601
	  </para>
Packit 5ce601
	  <para>
Packit 5ce601
	    If <option>file</option> is set to <literal>"-"</literal>, then
Packit 5ce601
	    the zone data is read from the standard input.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-K <replaceable class="parameter">directory</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the directory in which the key files are to reside.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-L <replaceable class="parameter">ttl</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the default TTL to use for this key when it is converted
Packit 5ce601
	    into a DNSKEY RR.  If the key is imported into a zone,
Packit 5ce601
	    this is the TTL that will be used for it, unless there was
Packit 5ce601
	    already a DNSKEY RRset in place, in which case the existing TTL
Packit 5ce601
	    would take precedence.  Setting the default TTL to
Packit 5ce601
	    <literal>0</literal> or <literal>none</literal> removes it.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-h</term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Emit usage message and exit.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-v <replaceable class="parameter">level</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the debugging level.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-V</term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Prints version information.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
    </variablelist>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>TIMING OPTIONS</title></info>
Packit 5ce601
Packit 5ce601
    <para>
Packit 5ce601
      Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS.
Packit 5ce601
      If the argument begins with a '+' or '-', it is interpreted as
Packit 5ce601
      an offset from the present time.  For convenience, if such an offset
Packit 5ce601
      is followed by one of the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi',
Packit 5ce601
      then the offset is computed in years (defined as 365 24-hour days,
Packit 5ce601
      ignoring leap years), months (defined as 30 24-hour days), weeks,
Packit 5ce601
      days, hours, or minutes, respectively.  Without a suffix, the offset
Packit 5ce601
      is computed in seconds.  To explicitly prevent a date from being
Packit 5ce601
      set, use 'none' or 'never'.
Packit 5ce601
    </para>
Packit 5ce601
Packit 5ce601
    <variablelist>
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-P <replaceable class="parameter">date/offset</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the date on which a key is to be published to the zone.
Packit 5ce601
	    After that date, the key will be included in the zone but will
Packit 5ce601
	    not be used to sign it.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-P sync <replaceable class="parameter">date/offset</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the date on which CDS and CDNSKEY records that match this
Packit 5ce601
	    key are to be published to the zone.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-D <replaceable class="parameter">date/offset</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the date on which the key is to be deleted.  After that
Packit 5ce601
	    date, the key will no longer be included in the zone.  (It
Packit 5ce601
	    may remain in the key repository, however.)
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
      <varlistentry>
Packit 5ce601
	<term>-D sync <replaceable class="parameter">date/offset</replaceable></term>
Packit 5ce601
	<listitem>
Packit 5ce601
	  <para>
Packit 5ce601
	    Sets the date on which the CDS and CDNSKEY records that match
Packit 5ce601
	    this key are to be deleted.
Packit 5ce601
	  </para>
Packit 5ce601
	</listitem>
Packit 5ce601
      </varlistentry>
Packit 5ce601
Packit 5ce601
    </variablelist>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>FILES</title></info>
Packit 5ce601
Packit 5ce601
    <para>
Packit 5ce601
      A keyfile can be designed by the key identification
Packit 5ce601
      <filename>Knnnn.+aaa+iiiii</filename> or the full file name
Packit 5ce601
      <filename>Knnnn.+aaa+iiiii.key</filename> as generated by
Packit 5ce601
      <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
  <refsection><info><title>SEE ALSO</title></info>
Packit 5ce601
Packit 5ce601
    <para><citerefentry>
Packit 5ce601
	<refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum>
Packit 5ce601
      </citerefentry>,
Packit 5ce601
      <citerefentry>
Packit 5ce601
	<refentrytitle>dnssec-signzone</refentrytitle><manvolnum>8</manvolnum>
Packit 5ce601
      </citerefentry>,
Packit 5ce601
      <citetitle>BIND 9 Administrator Reference Manual</citetitle>,
Packit 5ce601
      <citetitle>RFC 5011</citetitle>.
Packit 5ce601
    </para>
Packit 5ce601
  </refsection>
Packit 5ce601
Packit 5ce601
</refentry>