2 .Dt NTP_KEYS 5 File Formats
4 .\" EDIT THIS FILE WITH CAUTION (ntp.mdoc)
8 .\" It has been AutoGen-ed November 21, 2016 at 08:02:06 AM by AutoGen 5.18.5
9 .\" From the definitions ntp.keys.def
10 .\" and the template file agmdoc-file.tpl
13 .Nd NTP symmetric key file format
17 .Op Fl \-option\-name Ar value
19 All arguments must be options.
22 This document describes the format of an NTP symmetric key file.
23 For a description of the use of this type of file, see the
24 .Qq Authentication Support
30 reads its keys from a file specified using the
32 command line option or the
34 statement in the configuration file.
35 While key number 0 is fixed by the NTP standard
37 and may not be changed,
38 one or more keys numbered between 1 and 65534
39 may be arbitrarily set in the keys file.
41 The key file uses the same comment conventions
42 as the configuration file.
43 Key entries use a fixed format of the form
45 .D1 Ar keyno type key opt_IP_list
49 is a positive integer (between 1 and 65534),
51 is the message digest algorithm,
54 is the key itself, and
56 is an optional comma\-separated list of IPs
57 that are allowed to serve time.
61 any properly\-authenticated server message will be
66 may be given in a format
76 was built with the OpenSSL library
77 then any digest library supported by that library may be specified.
78 However, if compliance with FIPS 140\-2 is required the
85 What follows are some key types, and corresponding formats:
87 .Bl -tag -width RMD160 -compact
89 The key is 1 to 16 printable characters terminated by
95 (which is the "start of comment" character).
100 The key is a hex\-encoded ASCII string of 40 characters,
101 which is truncated as necessary.
104 Note that the keys used by the
108 programs are checked against passwords
109 requested by the programs and entered by hand,
110 so it is generally appropriate to specify these keys in ASCII format.
114 Display usage information and exit.
116 Pass the extended usage information through a pager.
117 .It Fl \-version Op Brq Ar v|c|n
118 Output version of program and exit. The default mode is `v', a simple
119 version. The `c' mode will print copyright information and `n' will
120 print the full copyright notice.
123 Any option that is not marked as \fInot presettable\fP may be preset
124 by loading values from environment variables named:
126 \fBNTP_KEYS_<option\-name>\fP or \fBNTP_KEYS\fP
130 See \fBOPTION PRESETS\fP for configuration environment variables.
132 .Bl -tag -width /etc/ntp.keys -compact
134 the default name of the configuration file
137 One of the following exit values will be returned:
139 .It 0 " (EXIT_SUCCESS)"
140 Successful program execution.
141 .It 1 " (EXIT_FAILURE)"
142 The operation failed or the command syntax was not valid.
143 .It 70 " (EX_SOFTWARE)"
144 libopts had an internal operational error. Please report
145 it to autogen\-users@lists.sourceforge.net. Thank you.
154 The University of Delaware and Network Time Foundation
156 Copyright (C) 1992\-2016 The University of Delaware and Network Time Foundation all rights reserved.
157 This program is released under the terms of the NTP license, <http://ntp.org/license>.
159 Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
161 This document was derived from FreeBSD.
163 This manual page was \fIAutoGen\fP\-erated from the \fBntp.keys\fP