authopt.html revision 290000
137535Sdes<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
263012Sdes<html>
337535Sdes<head>
437535Sdes<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
537535Sdes<meta name="generator" content="HTML Tidy, see www.w3.org">
637535Sdes<title>Authentication Commands and Options</title>
737535Sdes<link href="scripts/style.css" type="text/css" rel="stylesheet">
837535Sdes<style type="text/css">
937535Sdes.style1 {
1037535Sdes	color: #FF0000;
1137535Sdes	font-weight: bold;
1237535Sdes}
1337535Sdes</style>
1437535Sdes</head>
1563012Sdes<body>
1637535Sdes<h3>Authentication Commands and Options</h3>
1737535Sdes<img src="pic/alice44.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
1837535Sdes<p>Our resident cryptographer; now you see him, now you don't.</p>
1937535Sdes<p>Last update:
2037535Sdes  <!-- #BeginDate format:En2m -->15-Oct-2011  01:00<!-- #EndDate -->
2137535Sdes  UTC</p>
2237535Sdes<br clear="left">
2337535Sdes<h4>Related Links</h4>
2437535Sdes<script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
2537535Sdes<script type="text/javascript" language="javascript" src="scripts/authopt.txt"></script>
2637535Sdes<hr>
2737535Sdes<h4>Commands and Options</h4>
2837535Sdes<p>Unless noted otherwise, further information about these commands is on the <a href="authentic.html">Authentication Support</a> page.</p>
2984203Sdillon<dl>
3084203Sdillon  <dt id=automax><tt>automax [<i>logsec</i>]</tt></dt>
3184203Sdillon  <dd>Specifies the interval between regenerations of the session key list used with the Autokey protocol, as a power of 2 in seconds. Note that the size of the key list for each association depends on this interval and the current poll interval. The default interval is 12 (about 1.1 hr). For poll intervals above the specified interval, a session key list with a single entry will be regenerated for every message sent. See the <a href="autokey.html">Autokey Public Key Authentication</a> page for further information.</dd>
3263236Sdes  <dt id="controlkey"><tt>controlkey <i>keyid</i></tt></dt>
3363236Sdes  <dd>Specifies the key ID for the <a
3463236Sdes	href="ntpq.html"><tt>ntpq</tt></a> utility, which uses the
3563236Sdes    standard protocol defined in RFC-1305. The <tt><i>keyid</i></tt> argument is the key ID for a <a href="#trustedkey">trusted
3663236Sdes    key</a>, where the value can be in the range 1 to 65534,
3763236Sdes    inclusive.</dd>
3863236Sdes  <dt id="crypto"><tt>crypto [digest</tt> <em><tt>digest</tt></em><tt>]</tt> <tt>[host <i>name</i>] [ident <i>name</i>] [pw <i>password</i>] [randfile <i>file</i>]</tt></dt>
3963236Sdes  <dd>This command  activates the Autokey public key cryptography
4063236Sdes    and loads the required host keys and  certificate. If one or more files
4163236Sdes    are  unspecified, the default names are used. Unless
4263236Sdes    the complete path and name of the file are specified, the location of a file
4363236Sdes    is relative to the keys directory specified in the <tt>keysdir</tt> configuration
4463236Sdes    command with default <tt>/usr/local/etc</tt>. See the <a href="autokey.html">Autokey Public Key Authentication</a> page for further information. Following are the options.</dd>
4563236Sdes  <dd>
4663236Sdes    <dl>
4763236Sdes      <dt><tt>digest</tt> <em><tt>digest</tt></em></dt>
4863236Sdes      <dd>&nbsp;</dd>
4990267Sdes      <dd>Specify the message digest algorithm, with default MD5.  If the OpenSSL library
5063236Sdes        is installed, <tt><i>digest</i></tt> can be be any message digest algorithm supported
5163236Sdes        by the library. The current  selections are: <tt>MD2</tt>, <tt>MD4</tt>, <tt>MD5,</tt> <tt>MDC2</tt>, <tt>RIPEMD160</tt>, <tt>SHA</tt> and <tt>SHA1</tt>. All 
5263236Sdes        participants in an Autokey subnet must use the same algorithm. The Autokey message digest algorithm is separate and distinct from the symmetric
5363236Sdes        key message digest algorithm. Note: If compliance with FIPS 140-2 is required,
5463236Sdes        the algorithm must be ether <tt>SHA</tt> or <tt>SHA1</tt>.</dd>
5563236Sdes      <dt><tt>host <i>name</i></tt></dt>
5663236Sdes      <dd>Specify the cryptographic media  names for the host, sign and certificate files.   If this option is not specified, the default name is the string returned by the Unix <tt>gethostname()</tt> routine.</dd>
5763236Sdes      <dd><span class="style1">Note: In the latest Autokey version,  this option has no effect other than to change the cryptographic media file names.</span></dd>
5863236Sdes      <dt><tt>ident <i>group</i></tt></dt>
5963236Sdes      <dd>Specify the cryptographic media  names for the identity scheme files. If this option is not specified, the default name is the string returned by the Unix <tt>gethostname()</tt> routine.</dd>
6063236Sdes      <dd><span class="style1">Note: In the latest Autokey version,  this option has no effect other than to change the cryptographic media file names.</span></dd>
6163236Sdes      <dt><tt>pw <i>password</i></tt></dt>
6263236Sdes      <dd>Specifies the password to decrypt files previously encrypted by the <tt>ntp-keygen</tt> program with the <tt>-p</tt> option. If this option is not specified, the default password is the string returned by the Unix <tt>gethostname()</tt> routine. </dd>
6363236Sdes      <dt><tt>randfile <i>file</i></tt></dt>
6437535Sdes      <dd>Specifies the location of the random seed file used by the OpenSSL library. The defaults are described on the <a href="keygen.html"><tt>ntp-keygen</tt> page</a>.</dd>
6560737Sume    </dl>
6637535Sdes  </dd>
6763012Sdes  <dt id="ident"><tt>ident <i>group</i></tt></dt>
6837535Sdes  <dd>Specifies the group name for ephemeral associations mobilized by broadcast and symmetric passive modes. See the <a href="autokey.html">Autokey Public-Key Authentication</a> page for further information.</dd>
6963012Sdes  <dt id="keys"><tt>keys <i>path</i></tt></dt>
7060376Sdes  <dd>Specifies the complete directory path for the key file containing the key IDs, key types and keys used by <tt>ntpd</tt>, <tt>ntpq</tt> and <tt>ntpdc</tt> when operating with symmetric key cryptography.  The format of the keyfile is described on the <a href="keygen.html"><tt>ntp-keygen</tt> page</a>.  This is the same operation as the <tt>-k</tt> command line option. Note that the directory path for Autokey cryptographic media is specified by the <tt>keysdir</tt> command.</dd>
7160189Sdes  <dt id="keysdir"><tt>keysdir <i>path</i></tt></dt>
7237608Sdes  <dd>Specifies the  complete directory path for the Autokey cryptographic keys, parameters and certificates. The default is <tt>/usr/local/etc/</tt>. Note that the path for the symmetric keys file is specified by the <tt>keys</tt> command.</dd>
7337535Sdes  <dt id="requestkey"><tt>requestkey <i>keyid</i></tt></dt>
7437535Sdes  <dd>Specifies the key ID for the <a href="ntpdc.html"><tt>ntpdc</tt></a> utility program, which
7537535Sdes    uses a proprietary protocol specific to this implementation of <tt>ntpd</tt>. The <tt><i>keyid</i></tt> argument is a key ID
7660376Sdes    for a <a href="#trustedkey">trusted key</a>, in the range 1 to
7737535Sdes    65534, inclusive.</dd>
7837535Sdes  <dt id="revoke"><tt>revoke [<i>logsec</i>]</tt></dt>
7937535Sdes  <dd>Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in seconds, with default 17 (36 hr).  See the <a href="autokey.html">Autokey Public-Key Authentication</a> page for further information.</dd>
8040939Sdes  <dt id="trustedkey"><tt>trustedkey [<i>keyid</i> | (<i>lowid</i> ... <i>highid</i>)] [...]</tt></dt>
8141862Sdes  <dd>Specifies the key ID(s) which are trusted for the purposes of
8237535Sdes    authenticating peers with symmetric key cryptography.  Key IDs
8363012Sdes    used to authenticate <tt>ntpq</tt> and <tt>ntpdc</tt> operations
8463012Sdes    must be listed here and additionally be enabled with <a href="#controlkey">controlkey</a> and/or <a href="#requestkey">requestkey</a>. The authentication
8537535Sdes    procedure for time transfer requires that both the local and
8663012Sdes    remote NTP servers employ the same key ID and secret for this
8763012Sdes    purpose, although different keys IDs may be used with different
8863012Sdes    servers. Ranges of trusted key IDs may be specified: <tt>trustedkey (1 ... 19) 1000 (100 ... 199)</tt> enables the
8963012Sdes    lowest 120 key IDs which start with the digit 1. The spaces
9063012Sdes    surrounding the ellipsis are required when specifying a range.</dd>
9163012Sdes</dl>
9263012Sdes<hr>
9387317Sdes<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
9463012Sdes</body>
9560196Sdes</html>
9663012Sdes