xref: /freebsd-14.2/contrib/ntp/html/authopt.html (revision 9c2daa00)
1*9c2daa00SOllivier Robert<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2*9c2daa00SOllivier Robert<html>
3*9c2daa00SOllivier Robert<head>
4*9c2daa00SOllivier Robert<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
5*9c2daa00SOllivier Robert<meta name="generator" content="HTML Tidy, see www.w3.org">
6*9c2daa00SOllivier Robert<title>Authentication Commands and Options</title>
7*9c2daa00SOllivier Robert<!-- Changed by: stenn, 25-May-2018 -->
8*9c2daa00SOllivier Robert<link href="scripts/style.css" type="text/css" rel="stylesheet">
9*9c2daa00SOllivier Robert<style type="text/css">
10*9c2daa00SOllivier Robert.style1 {
11*9c2daa00SOllivier Robert	color: #FF0000;
12*9c2daa00SOllivier Robert	font-weight: bold;
13*9c2daa00SOllivier Robert}
14*9c2daa00SOllivier Robert</style>
15*9c2daa00SOllivier Robert</head>
16*9c2daa00SOllivier Robert<body>
17*9c2daa00SOllivier Robert<h3>Authentication Commands and Options</h3>
18*9c2daa00SOllivier Robert<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>
19*9c2daa00SOllivier Robert<p>Our resident cryptographer; now you see him, now you don't.</p>
20*9c2daa00SOllivier Robert<p>Last update:
21*9c2daa00SOllivier Robert  <!-- #BeginDate format:En2m -->24-Jul-2018  07:27<!-- #EndDate -->
22*9c2daa00SOllivier Robert  UTC</p>
23*9c2daa00SOllivier Robert<br clear="left">
24*9c2daa00SOllivier Robert<h4>Related Links</h4>
25*9c2daa00SOllivier Robert<script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
26*9c2daa00SOllivier Robert<script type="text/javascript" language="javascript" src="scripts/authopt.txt"></script>
27*9c2daa00SOllivier Robert<hr>
28*9c2daa00SOllivier Robert<h4>Commands and Options</h4>
29*9c2daa00SOllivier Robert<p>Unless noted otherwise, further information about these commands is on the <a href="authentic.html">Authentication Support</a> page.</p>
30*9c2daa00SOllivier Robert<dl>
31*9c2daa00SOllivier Robert  <dt id=automax><tt>automax [<i>logsec</i>]</tt></dt>
32*9c2daa00SOllivier Robert  <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>
33*9c2daa00SOllivier Robert  <dt id="controlkey"><tt>controlkey <i>keyid</i></tt></dt>
34*9c2daa00SOllivier Robert  <dd>Specifies the key ID for the <a
35*9c2daa00SOllivier Robert	href="ntpq.html"><tt>ntpq</tt></a> utility, which uses the
36*9c2daa00SOllivier Robert    standard protocol defined in RFC-1305.  The <tt><i>keyid</i></tt> argument is the key ID for a <a href="#trustedkey">trusted
37*9c2daa00SOllivier Robert    key</a>, where the value can be in the range 1 to 65535,
38*9c2daa00SOllivier Robert    inclusive.</dd>
39*9c2daa00SOllivier Robert  <dt id="crypto"><tt>crypto [digest <i>digest</i>] [host <i>name</i>] [ident <i>name</i>] [pw <i>password</i>] [randfile <i>file</i>]</tt></dt>
40*9c2daa00SOllivier Robert  <dd>This command  activates the Autokey public key cryptography
41*9c2daa00SOllivier Robert    and loads the required host keys and  certificate.  If one or more files
42*9c2daa00SOllivier Robert    are  unspecified, the default names are used.  Unless
43*9c2daa00SOllivier Robert    the complete path and name of the file are specified, the location of a file
44*9c2daa00SOllivier Robert    is relative to the keys directory specified in the <tt>keysdir</tt> configuration
45*9c2daa00SOllivier Robert    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>
46*9c2daa00SOllivier Robert  <dd>
47*9c2daa00SOllivier Robert    <dl>
48*9c2daa00SOllivier Robert      <dt><tt>digest</tt> <i>digest</i></dt>
49*9c2daa00SOllivier Robert      <dd>&nbsp;</dd>
50*9c2daa00SOllivier Robert      <dd>Specify the message digest algorithm, with default MD5.  If the OpenSSL library
51*9c2daa00SOllivier Robert        is installed, <tt><i>digest</i></tt> can be be any message digest algorithm supported
52*9c2daa00SOllivier Robert        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
53*9c2daa00SOllivier Robert        participants in an Autokey subnet must use the same algorithm.  The Autokey message digest algorithm is separate and distinct from the symmetric
54*9c2daa00SOllivier Robert        key message digest algorithm.  Note: If compliance with FIPS 140-2 is required,
55*9c2daa00SOllivier Robert        the algorithm must be ether <tt>SHA</tt> or <tt>SHA1</tt>.</dd>
56*9c2daa00SOllivier Robert      <dt><tt>host <i>name</i></tt></dt>
57*9c2daa00SOllivier Robert      <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>
58*9c2daa00SOllivier Robert      <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>
59*9c2daa00SOllivier Robert      <dt><tt>ident <i>group</i></tt></dt>
60*9c2daa00SOllivier Robert      <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>
61*9c2daa00SOllivier Robert      <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>
62*9c2daa00SOllivier Robert      <dt><tt>pw <i>password</i></tt></dt>
63*9c2daa00SOllivier Robert      <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>
64*9c2daa00SOllivier Robert      <dt><tt>randfile <i>file</i></tt></dt>
65*9c2daa00SOllivier Robert      <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>
66*9c2daa00SOllivier Robert    </dl>
67*9c2daa00SOllivier Robert  </dd>
68*9c2daa00SOllivier Robert  <dt id="ident"><tt>ident <i>group</i></tt></dt>
69*9c2daa00SOllivier Robert  <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>
70*9c2daa00SOllivier Robert  <dt id="keys"><tt>keys <i>path</i></tt></dt>
71*9c2daa00SOllivier Robert  <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>
72*9c2daa00SOllivier Robert  <dt id="keysdir"><tt>keysdir <i>path</i></tt></dt>
73*9c2daa00SOllivier Robert  <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>
74*9c2daa00SOllivier Robert  <dt id="requestkey"><tt>requestkey <i>keyid</i></tt></dt>
75*9c2daa00SOllivier Robert  <dd>Specifies the key ID for the <a href="ntpdc.html"><tt>ntpdc</tt></a> utility program, which
76*9c2daa00SOllivier Robert    uses a proprietary protocol specific to this implementation of <tt>ntpd</tt>.  The <tt><i>keyid</i></tt> argument is a key ID
77*9c2daa00SOllivier Robert    for a <a href="#trustedkey">trusted key</a>, in the range 1 to
78*9c2daa00SOllivier Robert    65535, inclusive.</dd>
79*9c2daa00SOllivier Robert  <dt id="revoke"><tt>revoke [<i>logsec</i>]</tt></dt>
80*9c2daa00SOllivier Robert  <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>
81*9c2daa00SOllivier Robert  <dt id="trustedkey"><tt>trustedkey [<i>keyid</i> | (<i>lowid</i> ... <i>highid</i>)] [...]</tt></dt>
82*9c2daa00SOllivier Robert  <dd>Specifies the key ID(s) which are trusted for the purposes of
83*9c2daa00SOllivier Robert    authenticating peers with symmetric key cryptography.  Key IDs
84*9c2daa00SOllivier Robert    used to authenticate <tt>ntpq</tt> and <tt>ntpdc</tt> operations
85*9c2daa00SOllivier Robert    must be listed here and additionally be enabled with <a href="#controlkey">controlkey</a> and/or <a href="#requestkey">requestkey</a>.  The authentication
86*9c2daa00SOllivier Robert    procedure for time transfer requires that both the local and
87*9c2daa00SOllivier Robert    remote NTP servers employ the same key ID and secret for this
88*9c2daa00SOllivier Robert    purpose, although different keys IDs may be used with different
89*9c2daa00SOllivier Robert    servers.  Ranges of trusted key IDs may be specified: <tt>trustedkey (1 ... 19) 1000 (100 ... 199)</tt> enables the
90*9c2daa00SOllivier Robert    lowest 120 key IDs which start with the digit 1.  The spaces
91*9c2daa00SOllivier Robert    surrounding the ellipsis are required when specifying a range.</dd>
92*9c2daa00SOllivier Robert</dl>
93*9c2daa00SOllivier Robert<hr>
94*9c2daa00SOllivier Robert<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
95*9c2daa00SOllivier Robert</body>
96*9c2daa00SOllivier Robert</html>
97*9c2daa00SOllivier Robert