Home | History | Annotate | Line # | Download | only in util
      1       1.1  christos .de1 NOP
      2       1.1  christos .  it 1 an-trap
      3       1.1  christos .  if \\n[.$] \,\\$*\/
      4       1.1  christos ..
      5       1.1  christos .ie t \
      6       1.1  christos .ds B-Font [CB]
      7       1.1  christos .ds I-Font [CI]
      8       1.1  christos .ds R-Font [CR]
      9       1.1  christos .el \
     10       1.1  christos .ds B-Font B
     11       1.1  christos .ds I-Font I
     12       1.1  christos .ds R-Font R
     13  1.1.1.15  christos .TH ntp-keygen 1ntp-keygenman "25 May 2024" "ntp (4.2.8p18)" "User Commands"
     14       1.1  christos .\"
     15  1.1.1.13  christos .\" EDIT THIS FILE WITH CAUTION (in-mem file)
     16       1.1  christos .\"
     17  1.1.1.15  christos .\" It has been AutoGen-ed May 25, 2024 at 12:04:51 AM by AutoGen 5.18.16
     18       1.1  christos .\" From the definitions ntp-keygen-opts.def
     19       1.1  christos .\" and the template file agman-cmd.tpl
     20       1.1  christos .SH NAME
     21       1.1  christos \f\*[B-Font]ntp-keygen\fP
     22       1.1  christos \- Create a NTP host key
     23       1.1  christos .SH SYNOPSIS
     24       1.1  christos \f\*[B-Font]ntp-keygen\fP
     25       1.1  christos .\" Mixture of short (flag) options and long options
     26       1.1  christos [\f\*[B-Font]\-flags\f[]]
     27       1.1  christos [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
     28       1.1  christos [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
     29       1.1  christos .sp \n(Ppu
     30       1.1  christos .ne 2
     31       1.1  christos 
     32       1.1  christos All arguments must be options.
     33       1.1  christos .sp \n(Ppu
     34       1.1  christos .ne 2
     35       1.1  christos 
     36       1.1  christos .SH DESCRIPTION
     37       1.1  christos This program generates cryptographic data files used by the NTPv4
     38       1.1  christos authentication and identification schemes.
     39  1.1.1.11  christos It can generate message digest keys used in symmetric key cryptography and,
     40  1.1.1.11  christos if the OpenSSL software library has been installed, it can generate host keys,
     41  1.1.1.11  christos signing keys, certificates, and identity keys and parameters used in Autokey
     42  1.1.1.11  christos public key cryptography.
     43       1.1  christos These files are used for cookie encryption,
     44  1.1.1.11  christos digital signature, and challenge/response identification algorithms
     45       1.1  christos compatible with the Internet standard security infrastructure.
     46       1.1  christos .sp \n(Ppu
     47       1.1  christos .ne 2
     48       1.1  christos 
     49  1.1.1.11  christos The message digest symmetric keys file is generated in a format
     50  1.1.1.11  christos compatible with NTPv3.
     51  1.1.1.11  christos All other files are in PEM-encoded printable ASCII format,
     52  1.1.1.11  christos so they can be embedded as MIME attachments in email to other sites
     53       1.1  christos and certificate authorities.
     54       1.1  christos By default, files are not encrypted.
     55       1.1  christos .sp \n(Ppu
     56       1.1  christos .ne 2
     57       1.1  christos 
     58  1.1.1.11  christos When used to generate message digest symmetric keys, the program
     59  1.1.1.11  christos produces a file containing ten pseudo-random printable ASCII strings
     60  1.1.1.11  christos suitable for the MD5 message digest algorithm included in the
     61  1.1.1.11  christos distribution.
     62       1.1  christos If the OpenSSL library is installed, it produces an additional ten
     63  1.1.1.11  christos hex-encoded random bit strings suitable for SHA1, AES-128-CMAC, and
     64  1.1.1.11  christos other message digest algorithms.
     65  1.1.1.11  christos The message digest symmetric keys file must be distributed and stored
     66       1.1  christos using secure means beyond the scope of NTP itself.
     67       1.1  christos Besides the keys used for ordinary NTP associations, additional keys
     68       1.1  christos can be defined as passwords for the
     69   1.1.1.4  christos \fCntpq\f[]\fR(1ntpqmdoc)\f[]
     70       1.1  christos and
     71   1.1.1.4  christos \fCntpdc\f[]\fR(1ntpdcmdoc)\f[]
     72       1.1  christos utility programs.
     73       1.1  christos .sp \n(Ppu
     74       1.1  christos .ne 2
     75       1.1  christos 
     76       1.1  christos The remaining generated files are compatible with other OpenSSL
     77       1.1  christos applications and other Public Key Infrastructure (PKI) resources.
     78       1.1  christos Certificates generated by this program are compatible with extant
     79       1.1  christos industry practice, although some users might find the interpretation of
     80       1.1  christos X509v3 extension fields somewhat liberal.
     81       1.1  christos However, the identity keys are probably not compatible with anything
     82       1.1  christos other than Autokey.
     83       1.1  christos .sp \n(Ppu
     84       1.1  christos .ne 2
     85       1.1  christos 
     86       1.1  christos Some files used by this program are encrypted using a private password.
     87       1.1  christos The
     88       1.1  christos \f\*[B-Font]\-p\f[]
     89  1.1.1.11  christos option specifies the read password for local encrypted files and the
     90       1.1  christos \f\*[B-Font]\-q\f[]
     91  1.1.1.11  christos option the write password for encrypted files sent to remote sites.
     92       1.1  christos If no password is specified, the host name returned by the Unix
     93  1.1.1.11  christos \fChostname\f[]\fR(1)\f[]
     94  1.1.1.11  christos command, normally the DNS name of the host, is used as the the default read
     95  1.1.1.11  christos password, for convenience.
     96  1.1.1.11  christos The
     97  1.1.1.11  christos \f\*[B-Font]ntp-keygen\fP
     98  1.1.1.11  christos program prompts for the password if it reads an encrypted file
     99  1.1.1.11  christos and the password is missing or incorrect.
    100  1.1.1.11  christos If an encrypted file is read successfully and
    101  1.1.1.11  christos no write password is specified, the read password is used
    102  1.1.1.11  christos as the write password by default.
    103       1.1  christos .sp \n(Ppu
    104       1.1  christos .ne 2
    105       1.1  christos 
    106       1.1  christos The
    107  1.1.1.11  christos \f\*[B-Font]pw\f[]
    108       1.1  christos option of the
    109  1.1.1.11  christos \f\*[B-Font]crypto\f[]
    110  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    111       1.1  christos configuration command specifies the read
    112       1.1  christos password for previously encrypted local files.
    113  1.1.1.11  christos This must match the local read password used by this program.
    114       1.1  christos If not specified, the host name is used.
    115  1.1.1.11  christos Thus, if files are generated by this program without an explicit password,
    116       1.1  christos they can be read back by
    117  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    118  1.1.1.11  christos without specifying an explicit password but only on the same host.
    119  1.1.1.11  christos If the write password used for encryption is specified as the host name,
    120  1.1.1.11  christos these files can be read by that host with no explicit password.
    121       1.1  christos .sp \n(Ppu
    122       1.1  christos .ne 2
    123       1.1  christos 
    124       1.1  christos Normally, encrypted files for each host are generated by that host and
    125       1.1  christos used only by that host, although exceptions exist as noted later on
    126       1.1  christos this page.
    127       1.1  christos The symmetric keys file, normally called
    128  1.1.1.11  christos \fIntp.keys\f[],
    129       1.1  christos is usually installed in
    130       1.1  christos \fI/etc\f[].
    131       1.1  christos Other files and links are usually installed in
    132       1.1  christos \fI/usr/local/etc\f[],
    133       1.1  christos which is normally in a shared filesystem in
    134       1.1  christos NFS-mounted networks and cannot be changed by shared clients.
    135  1.1.1.11  christos In these cases, NFS clients can specify the files in another
    136  1.1.1.11  christos directory such as
    137  1.1.1.11  christos \fI/etc\f[]
    138  1.1.1.11  christos using the
    139  1.1.1.11  christos \f\*[B-Font]keysdir\f[]
    140  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    141  1.1.1.11  christos configuration file command.
    142       1.1  christos .sp \n(Ppu
    143       1.1  christos .ne 2
    144       1.1  christos 
    145       1.1  christos This program directs commentary and error messages to the standard
    146       1.1  christos error stream
    147  1.1.1.11  christos \fIstderr\f[]
    148       1.1  christos and remote files to the standard output stream
    149  1.1.1.11  christos \fIstdout\f[]
    150       1.1  christos where they can be piped to other applications or redirected to files.
    151       1.1  christos The names used for generated files and links all begin with the
    152       1.1  christos string
    153  1.1.1.11  christos \fIntpkey\&*\f[]
    154       1.1  christos and include the file type, generating host and filestamp,
    155       1.1  christos as described in the
    156  1.1.1.11  christos \fICryptographic Data Files\f[]
    157       1.1  christos section below.
    158       1.1  christos .SS Running the Program
    159  1.1.1.11  christos The safest way to run the
    160       1.1  christos \f\*[B-Font]ntp-keygen\fP
    161  1.1.1.11  christos program is logged in directly as root.
    162  1.1.1.11  christos The recommended procedure is change to the
    163  1.1.1.11  christos \f\*[I-Font]keys\f[]
    164  1.1.1.11  christos directory, usually
    165       1.1  christos \fI/usr/local/etc\f[],
    166  1.1.1.11  christos then run the program.
    167       1.1  christos .sp \n(Ppu
    168       1.1  christos .ne 2
    169       1.1  christos 
    170  1.1.1.11  christos To test and gain experience with Autokey concepts, log in as root and
    171  1.1.1.11  christos change to the
    172  1.1.1.11  christos \f\*[I-Font]keys\f[]
    173  1.1.1.11  christos directory, usually
    174  1.1.1.11  christos \fI/usr/local/etc\f[].
    175  1.1.1.11  christos When run for the first time, or if all files with names beginning with
    176  1.1.1.11  christos \fIntpkey\&*\f[]
    177  1.1.1.11  christos have been removed, use the
    178       1.1  christos \f\*[B-Font]ntp-keygen\fP
    179  1.1.1.11  christos command without arguments to generate a default
    180  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    181  1.1.1.11  christos host key and matching
    182  1.1.1.11  christos \f\*[B-Font]RSA-MD5\f[]
    183  1.1.1.11  christos certificate file with expiration date one year hence,
    184       1.1  christos which is all that is necessary in many cases.
    185       1.1  christos The program also generates soft links from the generic names
    186       1.1  christos to the respective files.
    187  1.1.1.11  christos If run again without options, the program uses the
    188  1.1.1.11  christos existing keys and parameters and generates a new certificate file with
    189  1.1.1.11  christos new expiration date one year hence, and soft link.
    190       1.1  christos .sp \n(Ppu
    191       1.1  christos .ne 2
    192       1.1  christos 
    193  1.1.1.11  christos The host key is used to encrypt the cookie when required and so must be
    194  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    195  1.1.1.11  christos type.
    196       1.1  christos By default, the host key is also the sign key used to encrypt signatures.
    197       1.1  christos When necessary, a different sign key can be specified and this can be
    198  1.1.1.11  christos either
    199  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    200  1.1.1.11  christos or
    201  1.1.1.11  christos \f\*[B-Font]DSA\f[]
    202  1.1.1.11  christos type.
    203  1.1.1.11  christos By default, the message digest type is
    204  1.1.1.11  christos \f\*[B-Font]MD5\f[],
    205  1.1.1.11  christos but any combination
    206       1.1  christos of sign key type and message digest type supported by the OpenSSL library
    207  1.1.1.11  christos can be specified, including those using the
    208  1.1.1.11  christos \f\*[B-Font]AES128CMAC\f[], \f\*[B-Font]MD2\f[], \f\*[B-Font]MD5\f[], \f\*[B-Font]MDC2\f[], \f\*[B-Font]SHA\f[], \f\*[B-Font]SHA1\f[]
    209  1.1.1.11  christos and
    210  1.1.1.11  christos \f\*[B-Font]RIPE160\f[]
    211  1.1.1.11  christos message digest algorithms.
    212       1.1  christos However, the scheme specified in the certificate must be compatible
    213       1.1  christos with the sign key.
    214  1.1.1.11  christos Certificates using any digest algorithm are compatible with
    215  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    216  1.1.1.11  christos sign keys;
    217  1.1.1.11  christos however, only
    218  1.1.1.11  christos \f\*[B-Font]SHA\f[]
    219  1.1.1.11  christos and
    220  1.1.1.11  christos \f\*[B-Font]SHA1\f[]
    221  1.1.1.11  christos certificates are compatible with
    222  1.1.1.11  christos \f\*[B-Font]DSA\f[]
    223  1.1.1.11  christos sign keys.
    224       1.1  christos .sp \n(Ppu
    225       1.1  christos .ne 2
    226       1.1  christos 
    227       1.1  christos Private/public key files and certificates are compatible with
    228       1.1  christos other OpenSSL applications and very likely other libraries as well.
    229       1.1  christos Certificates or certificate requests derived from them should be compatible
    230       1.1  christos with extant industry practice, although some users might find
    231       1.1  christos the interpretation of X509v3 extension fields somewhat liberal.
    232       1.1  christos However, the identification parameter files, although encoded
    233       1.1  christos as the other files, are probably not compatible with anything other than Autokey.
    234       1.1  christos .sp \n(Ppu
    235       1.1  christos .ne 2
    236       1.1  christos 
    237       1.1  christos Running the program as other than root and using the Unix
    238  1.1.1.11  christos \fCsu\f[]\fR(1)\f[]
    239       1.1  christos command
    240       1.1  christos to assume root may not work properly, since by default the OpenSSL library
    241       1.1  christos looks for the random seed file
    242  1.1.1.11  christos \fI.rnd\f[]
    243       1.1  christos in the user home directory.
    244       1.1  christos However, there should be only one
    245  1.1.1.11  christos \fI.rnd\f[],
    246       1.1  christos most conveniently
    247       1.1  christos in the root directory, so it is convenient to define the
    248  1.1.1.11  christos RANDFILE
    249       1.1  christos environment variable used by the OpenSSL library as the path to
    250  1.1.1.11  christos \fI.rnd\f[].
    251       1.1  christos .sp \n(Ppu
    252       1.1  christos .ne 2
    253       1.1  christos 
    254       1.1  christos Installing the keys as root might not work in NFS-mounted
    255       1.1  christos shared file systems, as NFS clients may not be able to write
    256       1.1  christos to the shared keys directory, even as root.
    257       1.1  christos In this case, NFS clients can specify the files in another
    258       1.1  christos directory such as
    259       1.1  christos \fI/etc\f[]
    260       1.1  christos using the
    261       1.1  christos \f\*[B-Font]keysdir\f[]
    262  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    263  1.1.1.11  christos configuration file command.
    264       1.1  christos There is no need for one client to read the keys and certificates
    265       1.1  christos of other clients or servers, as these data are obtained automatically
    266       1.1  christos by the Autokey protocol.
    267       1.1  christos .sp \n(Ppu
    268       1.1  christos .ne 2
    269       1.1  christos 
    270       1.1  christos Ordinarily, cryptographic files are generated by the host that uses them,
    271       1.1  christos but it is possible for a trusted agent (TA) to generate these files
    272       1.1  christos for other hosts; however, in such cases files should always be encrypted.
    273       1.1  christos The subject name and trusted name default to the hostname
    274       1.1  christos of the host generating the files, but can be changed by command line options.
    275       1.1  christos It is convenient to designate the owner name and trusted name
    276       1.1  christos as the subject and issuer fields, respectively, of the certificate.
    277       1.1  christos The owner name is also used for the host and sign key files,
    278       1.1  christos while the trusted name is used for the identity files.
    279       1.1  christos .sp \n(Ppu
    280       1.1  christos .ne 2
    281       1.1  christos 
    282       1.1  christos All files are installed by default in the keys directory
    283       1.1  christos \fI/usr/local/etc\f[],
    284       1.1  christos which is normally in a shared filesystem
    285       1.1  christos in NFS-mounted networks.
    286       1.1  christos The actual location of the keys directory
    287       1.1  christos and each file can be overridden by configuration commands,
    288       1.1  christos but this is not recommended.
    289       1.1  christos Normally, the files for each host are generated by that host
    290       1.1  christos and used only by that host, although exceptions exist
    291       1.1  christos as noted later on this page.
    292       1.1  christos .sp \n(Ppu
    293       1.1  christos .ne 2
    294       1.1  christos 
    295       1.1  christos Normally, files containing private values,
    296       1.1  christos including the host key, sign key and identification parameters,
    297       1.1  christos are permitted root read/write-only;
    298       1.1  christos while others containing public values are permitted world readable.
    299       1.1  christos Alternatively, files containing private values can be encrypted
    300       1.1  christos and these files permitted world readable,
    301       1.1  christos which simplifies maintenance in shared file systems.
    302  1.1.1.11  christos Since uniqueness is insured by the
    303  1.1.1.11  christos \f\*[I-Font]hostname\f[]
    304  1.1.1.11  christos and
    305  1.1.1.11  christos \f\*[I-Font]filestamp\f[]
    306  1.1.1.11  christos file name extensions, the files for an NTP server and
    307       1.1  christos dependent clients can all be installed in the same shared directory.
    308       1.1  christos .sp \n(Ppu
    309       1.1  christos .ne 2
    310       1.1  christos 
    311       1.1  christos The recommended practice is to keep the file name extensions
    312       1.1  christos when installing a file and to install a soft link
    313       1.1  christos from the generic names specified elsewhere on this page
    314       1.1  christos to the generated files.
    315       1.1  christos This allows new file generations to be activated simply
    316       1.1  christos by changing the link.
    317  1.1.1.11  christos If a link is present,
    318  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    319  1.1.1.11  christos follows it to the file name to extract the
    320  1.1.1.11  christos \f\*[I-Font]filestamp\f[].
    321       1.1  christos If a link is not present,
    322   1.1.1.4  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    323  1.1.1.11  christos extracts the
    324  1.1.1.11  christos \f\*[I-Font]filestamp\f[]
    325  1.1.1.11  christos from the file itself.
    326       1.1  christos This allows clients to verify that the file and generation times
    327       1.1  christos are always current.
    328       1.1  christos The
    329       1.1  christos \f\*[B-Font]ntp-keygen\fP
    330  1.1.1.11  christos program uses the same
    331  1.1.1.11  christos \f\*[I-Font]filestamp\f[]
    332  1.1.1.11  christos extension for all files generated
    333       1.1  christos at one time, so each generation is distinct and can be readily
    334       1.1  christos recognized in monitoring data.
    335       1.1  christos .sp \n(Ppu
    336       1.1  christos .ne 2
    337       1.1  christos 
    338  1.1.1.11  christos Run the command on as many hosts as necessary.
    339  1.1.1.11  christos Designate one of them as the trusted host (TH) using
    340  1.1.1.11  christos \f\*[B-Font]ntp-keygen\fP
    341  1.1.1.11  christos with the
    342  1.1.1.11  christos \f\*[B-Font]\-T\f[]
    343  1.1.1.11  christos option and configure it to synchronize from reliable Internet servers.
    344  1.1.1.11  christos Then configure the other hosts to synchronize to the TH directly or
    345  1.1.1.11  christos indirectly.
    346  1.1.1.11  christos A certificate trail is created when Autokey asks the immediately
    347  1.1.1.11  christos ascendant host towards the TH to sign its certificate, which is then
    348  1.1.1.11  christos provided to the immediately descendant host on request.
    349  1.1.1.11  christos All group hosts should have acyclic certificate trails ending on the TH.
    350       1.1  christos .sp \n(Ppu
    351       1.1  christos .ne 2
    352       1.1  christos 
    353  1.1.1.11  christos The host key is used to encrypt the cookie when required and so must be
    354  1.1.1.11  christos RSA type.
    355  1.1.1.11  christos By default, the host key is also the sign key used to encrypt
    356  1.1.1.11  christos signatures.
    357  1.1.1.11  christos A different sign key can be assigned using the
    358  1.1.1.11  christos \f\*[B-Font]\-S\f[]
    359  1.1.1.11  christos option and this can be either
    360  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    361  1.1.1.11  christos or
    362  1.1.1.11  christos \f\*[B-Font]DSA\f[]
    363  1.1.1.11  christos type.
    364  1.1.1.11  christos By default, the signature
    365  1.1.1.11  christos message digest type is
    366  1.1.1.11  christos \f\*[B-Font]MD5\f[],
    367  1.1.1.11  christos but any combination of sign key type and
    368  1.1.1.11  christos message digest type supported by the OpenSSL library can be specified
    369  1.1.1.11  christos using the
    370  1.1.1.11  christos \f\*[B-Font]\-c\f[]
    371  1.1.1.11  christos option.
    372       1.1  christos .sp \n(Ppu
    373       1.1  christos .ne 2
    374       1.1  christos 
    375  1.1.1.11  christos The rules say cryptographic media should be generated with proventic
    376  1.1.1.11  christos filestamps, which means the host should already be synchronized before
    377  1.1.1.11  christos this program is run.
    378  1.1.1.11  christos This of course creates a chicken-and-egg problem
    379  1.1.1.11  christos when the host is started for the first time.
    380  1.1.1.11  christos Accordingly, the host time
    381  1.1.1.11  christos should be set by some other means, such as eyeball-and-wristwatch, at
    382  1.1.1.11  christos least so that the certificate lifetime is within the current year.
    383  1.1.1.11  christos After that and when the host is synchronized to a proventic source, the
    384  1.1.1.11  christos certificate should be re-generated.
    385       1.1  christos .sp \n(Ppu
    386       1.1  christos .ne 2
    387       1.1  christos 
    388  1.1.1.11  christos Additional information on trusted groups and identity schemes is on the
    389  1.1.1.11  christos \*[Lq]Autokey Public-Key Authentication\*[Rq]
    390  1.1.1.11  christos page.
    391       1.1  christos .sp \n(Ppu
    392       1.1  christos .ne 2
    393       1.1  christos 
    394  1.1.1.11  christos File names begin with the prefix
    395  1.1.1.11  christos \fIntpkey\f[]_
    396  1.1.1.11  christos and end with the suffix
    397  1.1.1.11  christos \fI_\f[]\f\*[I-Font]hostname\f[]. \f\*[I-Font]filestamp\f[],
    398  1.1.1.11  christos where
    399  1.1.1.11  christos \f\*[I-Font]hostname\f[]
    400  1.1.1.11  christos is the owner name, usually the string returned
    401  1.1.1.11  christos by the Unix
    402  1.1.1.11  christos \fChostname\f[]\fR(1)\f[]
    403  1.1.1.11  christos command, and
    404  1.1.1.11  christos \f\*[I-Font]filestamp\f[]
    405  1.1.1.11  christos is the NTP seconds when the file was generated, in decimal digits.
    406  1.1.1.11  christos This both guarantees uniqueness and simplifies maintenance
    407  1.1.1.11  christos procedures, since all files can be quickly removed
    408  1.1.1.11  christos by a
    409  1.1.1.11  christos \f\*[B-Font]rm\f[] \fIntpkey\&*\f[]
    410  1.1.1.11  christos command or all files generated
    411  1.1.1.11  christos at a specific time can be removed by a
    412  1.1.1.11  christos \f\*[B-Font]rm\f[] \fI\&*\f[]\f\*[I-Font]filestamp\f[]
    413  1.1.1.11  christos command.
    414  1.1.1.11  christos To further reduce the risk of misconfiguration,
    415  1.1.1.11  christos the first two lines of a file contain the file name
    416  1.1.1.11  christos and generation date and time as comments.
    417  1.1.1.11  christos .SS Trusted Hosts and Groups
    418       1.1  christos Each cryptographic configuration involves selection of a signature scheme
    419       1.1  christos and identification scheme, called a cryptotype,
    420       1.1  christos as explained in the
    421       1.1  christos \fIAuthentication\f[] \fIOptions\f[]
    422       1.1  christos section of
    423   1.1.1.4  christos \fCntp.conf\f[]\fR(5)\f[].
    424  1.1.1.11  christos The default cryptotype uses
    425  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    426  1.1.1.11  christos encryption,
    427  1.1.1.11  christos \f\*[B-Font]MD5\f[]
    428  1.1.1.11  christos message digest
    429  1.1.1.11  christos and
    430  1.1.1.11  christos \f\*[B-Font]TC\f[]
    431  1.1.1.11  christos identification.
    432       1.1  christos First, configure a NTP subnet including one or more low-stratum
    433       1.1  christos trusted hosts from which all other hosts derive synchronization
    434       1.1  christos directly or indirectly.
    435       1.1  christos Trusted hosts have trusted certificates;
    436       1.1  christos all other hosts have nontrusted certificates.
    437       1.1  christos These hosts will automatically and dynamically build authoritative
    438       1.1  christos certificate trails to one or more trusted hosts.
    439       1.1  christos A trusted group is the set of all hosts that have, directly or indirectly,
    440       1.1  christos a certificate trail ending at a trusted host.
    441       1.1  christos The trail is defined by static configuration file entries
    442       1.1  christos or dynamic means described on the
    443       1.1  christos \fIAutomatic\f[] \fINTP\f[] \fIConfiguration\f[] \fIOptions\f[]
    444       1.1  christos section of
    445   1.1.1.4  christos \fCntp.conf\f[]\fR(5)\f[].
    446       1.1  christos .sp \n(Ppu
    447       1.1  christos .ne 2
    448       1.1  christos 
    449       1.1  christos On each trusted host as root, change to the keys directory.
    450       1.1  christos To insure a fresh fileset, remove all
    451  1.1.1.11  christos \fIntpkey\f[]
    452       1.1  christos files.
    453       1.1  christos Then run
    454       1.1  christos \f\*[B-Font]ntp-keygen\fP
    455       1.1  christos \f\*[B-Font]\-T\f[]
    456       1.1  christos to generate keys and a trusted certificate.
    457       1.1  christos On all other hosts do the same, but leave off the
    458       1.1  christos \f\*[B-Font]\-T\f[]
    459       1.1  christos flag to generate keys and nontrusted certificates.
    460       1.1  christos When complete, start the NTP daemons beginning at the lowest stratum
    461       1.1  christos and working up the tree.
    462       1.1  christos It may take some time for Autokey to instantiate the certificate trails
    463       1.1  christos throughout the subnet, but setting up the environment is completely automatic.
    464       1.1  christos .sp \n(Ppu
    465       1.1  christos .ne 2
    466       1.1  christos 
    467       1.1  christos If it is necessary to use a different sign key or different digest/signature
    468       1.1  christos scheme than the default, run
    469       1.1  christos \f\*[B-Font]ntp-keygen\fP
    470       1.1  christos with the
    471       1.1  christos \f\*[B-Font]\-S\f[] \f\*[I-Font]type\f[]
    472       1.1  christos option, where
    473       1.1  christos \f\*[I-Font]type\f[]
    474       1.1  christos is either
    475       1.1  christos \f\*[B-Font]RSA\f[]
    476       1.1  christos or
    477       1.1  christos \f\*[B-Font]DSA\f[].
    478  1.1.1.11  christos The most frequent need to do this is when a
    479  1.1.1.11  christos \f\*[B-Font]DSA\f[]\-signed
    480  1.1.1.11  christos certificate is used.
    481       1.1  christos If it is necessary to use a different certificate scheme than the default,
    482       1.1  christos run
    483       1.1  christos \f\*[B-Font]ntp-keygen\fP
    484       1.1  christos with the
    485       1.1  christos \f\*[B-Font]\-c\f[] \f\*[I-Font]scheme\f[]
    486       1.1  christos option and selected
    487       1.1  christos \f\*[I-Font]scheme\f[]
    488       1.1  christos as needed.
    489  1.1.1.11  christos If
    490       1.1  christos \f\*[B-Font]ntp-keygen\fP
    491       1.1  christos is run again without these options, it generates a new certificate
    492  1.1.1.11  christos using the same scheme and sign key, and soft link.
    493       1.1  christos .sp \n(Ppu
    494       1.1  christos .ne 2
    495       1.1  christos 
    496       1.1  christos After setting up the environment it is advisable to update certificates
    497       1.1  christos from time to time, if only to extend the validity interval.
    498       1.1  christos Simply run
    499       1.1  christos \f\*[B-Font]ntp-keygen\fP
    500       1.1  christos with the same flags as before to generate new certificates
    501  1.1.1.11  christos using existing keys, and soft links.
    502       1.1  christos However, if the host or sign key is changed,
    503   1.1.1.4  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    504       1.1  christos should be restarted.
    505       1.1  christos When
    506   1.1.1.4  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    507       1.1  christos is restarted, it loads any new files and restarts the protocol.
    508       1.1  christos Other dependent hosts will continue as usual until signatures are refreshed,
    509       1.1  christos at which time the protocol is restarted.
    510       1.1  christos .SS Identity Schemes
    511       1.1  christos As mentioned on the Autonomous Authentication page,
    512  1.1.1.11  christos the default
    513  1.1.1.11  christos \f\*[B-Font]TC\f[]
    514  1.1.1.11  christos identity scheme is vulnerable to a middleman attack.
    515       1.1  christos However, there are more secure identity schemes available,
    516  1.1.1.11  christos including
    517  1.1.1.11  christos \f\*[B-Font]PC\f[], \f\*[B-Font]IFF\f[], \f\*[B-Font]GQ\f[]
    518  1.1.1.11  christos and
    519  1.1.1.11  christos \f\*[B-Font]MV\f[]
    520  1.1.1.11  christos schemes described below.
    521       1.1  christos These schemes are based on a TA, one or more trusted hosts
    522       1.1  christos and some number of nontrusted hosts.
    523       1.1  christos Trusted hosts prove identity using values provided by the TA,
    524       1.1  christos while the remaining hosts prove identity using values provided
    525       1.1  christos by a trusted host and certificate trails that end on that host.
    526       1.1  christos The name of a trusted host is also the name of its sugroup
    527       1.1  christos and also the subject and issuer name on its trusted certificate.
    528       1.1  christos The TA is not necessarily a trusted host in this sense, but often is.
    529       1.1  christos .sp \n(Ppu
    530       1.1  christos .ne 2
    531       1.1  christos 
    532       1.1  christos In some schemes there are separate keys for servers and clients.
    533       1.1  christos A server can also be a client of another server,
    534       1.1  christos but a client can never be a server for another client.
    535       1.1  christos In general, trusted hosts and nontrusted hosts that operate
    536       1.1  christos as both server and client have parameter files that contain
    537       1.1  christos both server and client keys.
    538       1.1  christos Hosts that operate
    539       1.1  christos only as clients have key files that contain only client keys.
    540       1.1  christos .sp \n(Ppu
    541       1.1  christos .ne 2
    542       1.1  christos 
    543       1.1  christos The PC scheme supports only one trusted host in the group.
    544       1.1  christos On trusted host alice run
    545       1.1  christos \f\*[B-Font]ntp-keygen\fP
    546       1.1  christos \f\*[B-Font]\-P\f[]
    547       1.1  christos \f\*[B-Font]\-p\f[] \f\*[I-Font]password\f[]
    548       1.1  christos to generate the host key file
    549  1.1.1.11  christos \fIntpkey\f[]_ \f\*[B-Font]RSA\f[] \fIkey_alice.\f[] \f\*[I-Font]filestamp\f[]
    550       1.1  christos and trusted private certificate file
    551  1.1.1.11  christos \fIntpkey\f[]_ \f\*[B-Font]RSA-MD5\f[] \f\*[B-Font]_\f[] \fIcert_alice.\f[] \f\*[I-Font]filestamp\f[],
    552  1.1.1.11  christos and soft links.
    553       1.1  christos Copy both files to all group hosts;
    554       1.1  christos they replace the files which would be generated in other schemes.
    555  1.1.1.11  christos On each host
    556  1.1.1.11  christos \f\*[I-Font]bob\f[]
    557  1.1.1.11  christos install a soft link from the generic name
    558       1.1  christos \fIntpkey_host_\f[]\f\*[I-Font]bob\f[]
    559       1.1  christos to the host key file and soft link
    560       1.1  christos \fIntpkey_cert_\f[]\f\*[I-Font]bob\f[]
    561       1.1  christos to the private certificate file.
    562       1.1  christos Note the generic links are on bob, but point to files generated
    563       1.1  christos by trusted host alice.
    564       1.1  christos In this scheme it is not possible to refresh
    565       1.1  christos either the keys or certificates without copying them
    566  1.1.1.11  christos to all other hosts in the group, and recreating the soft links.
    567       1.1  christos .sp \n(Ppu
    568       1.1  christos .ne 2
    569       1.1  christos 
    570  1.1.1.11  christos For the
    571  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    572  1.1.1.11  christos scheme proceed as in the
    573  1.1.1.11  christos \f\*[B-Font]TC\f[]
    574  1.1.1.11  christos scheme to generate keys
    575       1.1  christos and certificates for all group hosts, then for every trusted host in the group,
    576  1.1.1.11  christos generate the
    577  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    578  1.1.1.11  christos parameter file.
    579       1.1  christos On trusted host alice run
    580       1.1  christos \f\*[B-Font]ntp-keygen\fP
    581       1.1  christos \f\*[B-Font]\-T\f[]
    582       1.1  christos \f\*[B-Font]\-I\f[]
    583       1.1  christos \f\*[B-Font]\-p\f[] \f\*[I-Font]password\f[]
    584       1.1  christos to produce her parameter file
    585  1.1.1.11  christos \fIntpkey_IFFpar_alice.\f[]\f\*[I-Font]filestamp\f[],
    586       1.1  christos which includes both server and client keys.
    587       1.1  christos Copy this file to all group hosts that operate as both servers
    588       1.1  christos and clients and install a soft link from the generic
    589  1.1.1.11  christos \fIntpkey_iff_alice\f[]
    590       1.1  christos to this file.
    591       1.1  christos If there are no hosts restricted to operate only as clients,
    592       1.1  christos there is nothing further to do.
    593  1.1.1.11  christos As the
    594  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    595  1.1.1.11  christos scheme is independent
    596       1.1  christos of keys and certificates, these files can be refreshed as needed.
    597       1.1  christos .sp \n(Ppu
    598       1.1  christos .ne 2
    599       1.1  christos 
    600       1.1  christos If a rogue client has the parameter file, it could masquerade
    601       1.1  christos as a legitimate server and present a middleman threat.
    602       1.1  christos To eliminate this threat, the client keys can be extracted
    603       1.1  christos from the parameter file and distributed to all restricted clients.
    604       1.1  christos After generating the parameter file, on alice run
    605       1.1  christos \f\*[B-Font]ntp-keygen\fP
    606       1.1  christos \f\*[B-Font]\-e\f[]
    607  1.1.1.11  christos and pipe the output to a file or email program.
    608  1.1.1.11  christos Copy or email this file to all restricted clients.
    609       1.1  christos On these clients install a soft link from the generic
    610  1.1.1.11  christos \fIntpkey_iff_alice\f[]
    611       1.1  christos to this file.
    612       1.1  christos To further protect the integrity of the keys,
    613       1.1  christos each file can be encrypted with a secret password.
    614       1.1  christos .sp \n(Ppu
    615       1.1  christos .ne 2
    616       1.1  christos 
    617  1.1.1.11  christos For the
    618  1.1.1.11  christos \f\*[B-Font]GQ\f[]
    619  1.1.1.11  christos scheme proceed as in the
    620  1.1.1.11  christos \f\*[B-Font]TC\f[]
    621  1.1.1.11  christos scheme to generate keys
    622       1.1  christos and certificates for all group hosts, then for every trusted host
    623  1.1.1.11  christos in the group, generate the
    624  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    625  1.1.1.11  christos parameter file.
    626       1.1  christos On trusted host alice run
    627       1.1  christos \f\*[B-Font]ntp-keygen\fP
    628       1.1  christos \f\*[B-Font]\-T\f[]
    629       1.1  christos \f\*[B-Font]\-G\f[]
    630       1.1  christos \f\*[B-Font]\-p\f[] \f\*[I-Font]password\f[]
    631       1.1  christos to produce her parameter file
    632  1.1.1.11  christos \fIntpkey_GQpar_alice.\f[]\f\*[I-Font]filestamp\f[],
    633       1.1  christos which includes both server and client keys.
    634       1.1  christos Copy this file to all group hosts and install a soft link
    635       1.1  christos from the generic
    636  1.1.1.11  christos \fIntpkey_gq_alice\f[]
    637       1.1  christos to this file.
    638  1.1.1.11  christos In addition, on each host
    639  1.1.1.11  christos \f\*[I-Font]bob\f[]
    640  1.1.1.11  christos install a soft link
    641       1.1  christos from generic
    642       1.1  christos \fIntpkey_gq_\f[]\f\*[I-Font]bob\f[]
    643       1.1  christos to this file.
    644  1.1.1.11  christos As the
    645  1.1.1.11  christos \f\*[B-Font]GQ\f[]
    646  1.1.1.11  christos scheme updates the
    647  1.1.1.11  christos \f\*[B-Font]GQ\f[]
    648  1.1.1.11  christos parameters file and certificate
    649       1.1  christos at the same time, keys and certificates can be regenerated as needed.
    650       1.1  christos .sp \n(Ppu
    651       1.1  christos .ne 2
    652       1.1  christos 
    653  1.1.1.11  christos For the
    654  1.1.1.11  christos \f\*[B-Font]MV\f[]
    655  1.1.1.11  christos scheme, proceed as in the
    656  1.1.1.11  christos \f\*[B-Font]TC\f[]
    657  1.1.1.11  christos scheme to generate keys
    658       1.1  christos and certificates for all group hosts.
    659       1.1  christos For illustration assume trish is the TA, alice one of several trusted hosts
    660       1.1  christos and bob one of her clients.
    661       1.1  christos On TA trish run
    662       1.1  christos \f\*[B-Font]ntp-keygen\fP
    663       1.1  christos \f\*[B-Font]\-V\f[] \f\*[I-Font]n\f[]
    664       1.1  christos \f\*[B-Font]\-p\f[] \f\*[I-Font]password\f[],
    665       1.1  christos where
    666       1.1  christos \f\*[I-Font]n\f[]
    667       1.1  christos is the number of revokable keys (typically 5) to produce
    668       1.1  christos the parameter file
    669  1.1.1.11  christos \fIntpkeys_MVpar_trish.\f[]\f\*[I-Font]filestamp\f[]
    670       1.1  christos and client key files
    671  1.1.1.11  christos \fIntpkeys_MVkey\f[]\f\*[I-Font]d\f[] \f\*[I-Font]_\f[] \fItrish.\f[] \f\*[I-Font]filestamp\f[]
    672       1.1  christos where
    673       1.1  christos \f\*[I-Font]d\f[]
    674       1.1  christos is the key number (0 \&<
    675       1.1  christos \f\*[I-Font]d\f[]
    676       1.1  christos \&<
    677       1.1  christos \f\*[I-Font]n\f[]).
    678       1.1  christos Copy the parameter file to alice and install a soft link
    679       1.1  christos from the generic
    680  1.1.1.11  christos \fIntpkey_mv_alice\f[]
    681       1.1  christos to this file.
    682       1.1  christos Copy one of the client key files to alice for later distribution
    683       1.1  christos to her clients.
    684  1.1.1.11  christos It does not matter which client key file goes to alice,
    685       1.1  christos since they all work the same way.
    686  1.1.1.11  christos Alice copies the client key file to all of her clients.
    687       1.1  christos On client bob install a soft link from generic
    688  1.1.1.11  christos \fIntpkey_mvkey_bob\f[]
    689       1.1  christos to the client key file.
    690  1.1.1.11  christos As the
    691  1.1.1.11  christos \f\*[B-Font]MV\f[]
    692  1.1.1.11  christos scheme is independent of keys and certificates,
    693       1.1  christos these files can be refreshed as needed.
    694       1.1  christos .SS Command Line Options
    695       1.1  christos .TP 7
    696  1.1.1.11  christos .NOP \f\*[B-Font]\-b\f[] \f\*[B-Font]\-\-imbits\f[]= \f\*[I-Font]modulus\f[]
    697  1.1.1.11  christos Set the number of bits in the identity modulus for generating identity keys to
    698  1.1.1.11  christos \f\*[I-Font]modulus\f[]
    699  1.1.1.11  christos bits.
    700  1.1.1.11  christos The number of bits in the identity modulus defaults to 256, but can be set to
    701  1.1.1.11  christos values from 256 to 2048 (32 to 256 octets).
    702  1.1.1.11  christos Use the larger moduli with caution, as this can consume considerable computing
    703  1.1.1.11  christos resources and increases the size of authenticated packets.
    704  1.1.1.11  christos .TP 7
    705  1.1.1.11  christos .NOP \f\*[B-Font]\-c\f[] \f\*[B-Font]\-\-certificate\f[]= \f\*[I-Font]scheme\f[]
    706  1.1.1.11  christos Select certificate signature encryption/message digest scheme.
    707       1.1  christos The
    708       1.1  christos \f\*[I-Font]scheme\f[]
    709       1.1  christos can be one of the following:
    710  1.1.1.11  christos \f\*[B-Font]RSA-MD2\f[], \f\*[B-Font]RSA-MD5\f[], \f\*[B-Font]RSA-MDC2\f[], \f\*[B-Font]RSA-SHA\f[], \f\*[B-Font]RSA-SHA1\f[], \f\*[B-Font]RSA-RIPEMD160\f[], \f\*[B-Font]DSA-SHA\f[],
    711       1.1  christos or
    712       1.1  christos \f\*[B-Font]DSA-SHA1\f[].
    713  1.1.1.11  christos Note that
    714  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    715  1.1.1.11  christos schemes must be used with an
    716  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    717  1.1.1.11  christos sign key and
    718  1.1.1.11  christos \f\*[B-Font]DSA\f[]
    719  1.1.1.11  christos schemes must be used with a
    720  1.1.1.11  christos \f\*[B-Font]DSA\f[]
    721  1.1.1.11  christos sign key.
    722       1.1  christos The default without this option is
    723       1.1  christos \f\*[B-Font]RSA-MD5\f[].
    724  1.1.1.11  christos If compatibility with FIPS 140-2 is required, either the
    725  1.1.1.11  christos \f\*[B-Font]DSA-SHA\f[]
    726  1.1.1.11  christos or
    727  1.1.1.11  christos \f\*[B-Font]DSA-SHA1\f[]
    728  1.1.1.11  christos scheme must be used.
    729       1.1  christos .TP 7
    730  1.1.1.11  christos .NOP \f\*[B-Font]\-C\f[] \f\*[B-Font]\-\-cipher\f[]= \f\*[I-Font]cipher\f[]
    731  1.1.1.11  christos Select the OpenSSL cipher to encrypt the files containing private keys.
    732  1.1.1.11  christos The default without this option is three-key triple DES in CBC mode,
    733  1.1.1.11  christos \f\*[B-Font]des-ede3-cbc\f[].
    734  1.1.1.11  christos The
    735  1.1.1.11  christos \f\*[B-Font]openssl\f[] \f\*[B-Font]\-h\f[]
    736  1.1.1.11  christos command provided with OpenSSL displays available ciphers.
    737  1.1.1.11  christos .TP 7
    738  1.1.1.11  christos .NOP \f\*[B-Font]\-d\f[] \f\*[B-Font]\-\-debug-level\f[]
    739  1.1.1.11  christos Increase debugging verbosity level.
    740       1.1  christos This option displays the cryptographic data produced in eye-friendly billboards.
    741       1.1  christos .TP 7
    742  1.1.1.11  christos .NOP \f\*[B-Font]\-D\f[] \f\*[B-Font]\-\-set-debug-level\f[]= \f\*[I-Font]level\f[]
    743  1.1.1.11  christos Set the debugging verbosity to
    744  1.1.1.11  christos \f\*[I-Font]level\f[].
    745  1.1.1.11  christos This option displays the cryptographic data produced in eye-friendly billboards.
    746       1.1  christos .TP 7
    747  1.1.1.11  christos .NOP \f\*[B-Font]\-e\f[] \f\*[B-Font]\-\-id-key\f[]
    748  1.1.1.11  christos Write the
    749  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    750  1.1.1.11  christos or
    751  1.1.1.11  christos \f\*[B-Font]GQ\f[]
    752  1.1.1.11  christos public parameters from the
    753  1.1.1.11  christos \f\*[I-Font]IFFkey\f[] \f\*[I-Font]or\f[] \f\*[I-Font]GQkey\f[]
    754  1.1.1.11  christos client keys file previously specified
    755  1.1.1.11  christos as unencrypted data to the standard output stream
    756  1.1.1.11  christos \fIstdout\f[].
    757  1.1.1.11  christos This is intended for automatic key distribution by email.
    758       1.1  christos .TP 7
    759  1.1.1.11  christos .NOP \f\*[B-Font]\-G\f[] \f\*[B-Font]\-\-gq-params\f[]
    760  1.1.1.11  christos Generate a new encrypted
    761  1.1.1.11  christos \f\*[B-Font]GQ\f[]
    762  1.1.1.11  christos parameters and key file for the Guillou-Quisquater (GQ) identity scheme.
    763  1.1.1.11  christos This option is mutually exclusive with the
    764  1.1.1.11  christos \f\*[B-Font]\-I\f[]
    765  1.1.1.11  christos and
    766  1.1.1.11  christos \f\*[B-Font]\-V\f[]
    767  1.1.1.11  christos options.
    768       1.1  christos .TP 7
    769  1.1.1.11  christos .NOP \f\*[B-Font]\-H\f[] \f\*[B-Font]\-\-host-key\f[]
    770  1.1.1.11  christos Generate a new encrypted
    771  1.1.1.11  christos \f\*[B-Font]RSA\f[]
    772  1.1.1.11  christos public/private host key file.
    773       1.1  christos .TP 7
    774  1.1.1.11  christos .NOP \f\*[B-Font]\-I\f[] \f\*[B-Font]\-\-iffkey\f[]
    775  1.1.1.11  christos Generate a new encrypted
    776  1.1.1.11  christos \f\*[B-Font]IFF\f[]
    777  1.1.1.11  christos key file for the Schnorr (IFF) identity scheme.
    778  1.1.1.11  christos This option is mutually exclusive with the
    779  1.1.1.11  christos \f\*[B-Font]\-G\f[]
    780  1.1.1.11  christos and
    781  1.1.1.11  christos Fl V
    782  1.1.1.11  christos options.
    783       1.1  christos .TP 7
    784  1.1.1.11  christos .NOP \f\*[B-Font]\-i\f[] \f\*[B-Font]\-\-ident\f[]= \f\*[I-Font]group\f[]
    785  1.1.1.11  christos Set the optional Autokey group name to
    786  1.1.1.11  christos \f\*[I-Font]group\f[].
    787  1.1.1.11  christos This is used in the identity scheme parameter file names of
    788  1.1.1.11  christos \f\*[B-Font]IFF\f[], \f\*[B-Font]GQ\f[],
    789  1.1.1.11  christos and
    790  1.1.1.11  christos \f\*[B-Font]MV\f[]
    791  1.1.1.11  christos client parameters files.
    792  1.1.1.11  christos In that role, the default is the host name if no group is provided.
    793  1.1.1.11  christos The group name, if specified using
    794  1.1.1.11  christos \f\*[B-Font]\-i\f[]
    795  1.1.1.11  christos or
    796  1.1.1.11  christos \f\*[B-Font]\-s\f[]
    797  1.1.1.11  christos following an
    798  1.1.1.11  christos \[oq]@@\[cq]
    799  1.1.1.11  christos character, is also used in certificate subject and issuer names in the form
    800  1.1.1.11  christos \f\*[I-Font]host\f[] \f\*[I-Font]@@\f[] \f\*[I-Font]group\f[]
    801  1.1.1.11  christos and should match the group specified via
    802  1.1.1.11  christos \f\*[B-Font]crypto\f[] \f\*[B-Font]ident\f[]
    803  1.1.1.11  christos or
    804  1.1.1.11  christos \f\*[B-Font]server\f[] \f\*[B-Font]ident\f[]
    805  1.1.1.11  christos in the ntpd configuration file.
    806       1.1  christos .TP 7
    807  1.1.1.11  christos .NOP \f\*[B-Font]\-l\f[] \f\*[B-Font]\-\-lifetime\f[]= \f\*[I-Font]days\f[]
    808  1.1.1.11  christos Set the lifetime for certificate expiration to
    809  1.1.1.11  christos \f\*[I-Font]days\f[].
    810  1.1.1.11  christos The default lifetime is one year (365 days).
    811       1.1  christos .TP 7
    812  1.1.1.11  christos .NOP \f\*[B-Font]\-m\f[] \f\*[B-Font]\-\-modulus\f[]= \f\*[I-Font]bits\f[]
    813  1.1.1.11  christos Set the number of bits in the prime modulus for generating files to
    814  1.1.1.11  christos \f\*[I-Font]bits\f[].
    815  1.1.1.11  christos The modulus defaults to 512, but can be set from 256 to 2048 (32 to 256 octets).
    816  1.1.1.11  christos Use the larger moduli with caution, as this can consume considerable computing
    817  1.1.1.11  christos resources and increases the size of authenticated packets.
    818       1.1  christos .TP 7
    819  1.1.1.11  christos .NOP \f\*[B-Font]\-M\f[] \f\*[B-Font]\-\-md5key\f[]
    820  1.1.1.11  christos Generate a new symmetric keys file containing 10
    821  1.1.1.11  christos \f\*[B-Font]MD5\f[]
    822  1.1.1.11  christos keys, and if OpenSSL is available, 10
    823  1.1.1.11  christos \f\*[B-Font]SHA\f[]
    824  1.1.1.11  christos keys.
    825  1.1.1.11  christos An
    826  1.1.1.11  christos \f\*[B-Font]MD5\f[]
    827  1.1.1.11  christos key is a string of 20 random printable ASCII characters, while a
    828  1.1.1.11  christos \f\*[B-Font]SHA\f[]
    829  1.1.1.11  christos key is a string of 40 random hex digits.
    830  1.1.1.11  christos The file can be edited using a text editor to change the key type or key content.
    831  1.1.1.11  christos This option is mutually exclusive with all other options.
    832       1.1  christos .TP 7
    833  1.1.1.11  christos .NOP \f\*[B-Font]\-p\f[] \f\*[B-Font]\-\-password\f[]= \f\*[I-Font]passwd\f[]
    834  1.1.1.11  christos Set the password for reading and writing encrypted files to
    835  1.1.1.11  christos \f\*[I-Font]passwd\f[].
    836  1.1.1.11  christos These include the host, sign and identify key files.
    837  1.1.1.11  christos By default, the password is the string returned by the Unix
    838  1.1.1.11  christos \f\*[B-Font]hostname\f[]
    839  1.1.1.11  christos command.
    840       1.1  christos .TP 7
    841  1.1.1.11  christos .NOP \f\*[B-Font]\-P\f[] \f\*[B-Font]\-\-pvt-cert\f[]
    842  1.1.1.11  christos Generate a new private certificate used by the
    843  1.1.1.11  christos \f\*[B-Font]PC\f[]
    844  1.1.1.11  christos identity scheme.
    845  1.1.1.11  christos By default, the program generates public certificates.
    846  1.1.1.11  christos Note: the PC identity scheme is not recommended for new installations.
    847       1.1  christos .TP 7
    848  1.1.1.11  christos .NOP \f\*[B-Font]\-q\f[] \f\*[B-Font]\-\-export-passwd\f[]= \f\*[I-Font]passwd\f[]
    849  1.1.1.11  christos Set the password for writing encrypted
    850  1.1.1.11  christos \f\*[B-Font]IFF\f[], \f\*[B-Font]GQ\f[] \f\*[B-Font]and\f[] \f\*[B-Font]MV\f[]
    851  1.1.1.11  christos identity files redirected to
    852  1.1.1.11  christos \fIstdout\f[]
    853  1.1.1.11  christos to
    854  1.1.1.11  christos \f\*[I-Font]passwd\f[].
    855  1.1.1.11  christos In effect, these files are decrypted with the
    856  1.1.1.11  christos \f\*[B-Font]\-p\f[]
    857  1.1.1.11  christos password, then encrypted with the
    858  1.1.1.11  christos \f\*[B-Font]\-q\f[]
    859  1.1.1.11  christos password.
    860  1.1.1.11  christos By default, the password is the string returned by the Unix
    861  1.1.1.11  christos \f\*[B-Font]hostname\f[]
    862  1.1.1.11  christos command.
    863       1.1  christos .TP 7
    864  1.1.1.11  christos .NOP \f\*[B-Font]\-s\f[] \f\*[B-Font]\-\-subject-key\f[]= [host] [@@ \f\*[I-Font]group\f[]]
    865  1.1.1.11  christos Specify the Autokey host name, where
    866  1.1.1.11  christos \f\*[I-Font]host\f[]
    867  1.1.1.11  christos is the optional host name and
    868  1.1.1.11  christos \f\*[I-Font]group\f[]
    869  1.1.1.11  christos is the optional group name.
    870  1.1.1.11  christos The host name, and if provided, group name are used in
    871  1.1.1.11  christos \f\*[I-Font]host\f[] \f\*[I-Font]@@\f[] \f\*[I-Font]group\f[]
    872  1.1.1.11  christos form as certificate subject and issuer.
    873  1.1.1.11  christos Specifying
    874  1.1.1.11  christos \f\*[B-Font]\-s\f[] \f\*[B-Font]\-@@\f[] \f\*[I-Font]group\f[]
    875  1.1.1.11  christos is allowed, and results in leaving the host name unchanged, as with
    876  1.1.1.11  christos \f\*[B-Font]\-i\f[] \f\*[I-Font]group\f[].
    877  1.1.1.11  christos The group name, or if no group is provided, the host name are also used in the
    878  1.1.1.11  christos file names of
    879  1.1.1.11  christos \f\*[B-Font]IFF\f[], \f\*[B-Font]GQ\f[],
    880  1.1.1.11  christos and
    881  1.1.1.11  christos \f\*[B-Font]MV\f[]
    882  1.1.1.11  christos identity scheme client parameter files.
    883  1.1.1.11  christos If
    884  1.1.1.11  christos \f\*[I-Font]host\f[]
    885  1.1.1.11  christos is not specified, the default host name is the string returned by the Unix
    886  1.1.1.11  christos \f\*[B-Font]hostname\f[]
    887  1.1.1.11  christos command.
    888  1.1.1.11  christos .TP 7
    889  1.1.1.11  christos .NOP \f\*[B-Font]\-S\f[] \f\*[B-Font]\-\-sign-key\f[]= [\f\*[B-Font]RSA\f[] | \f\*[B-Font]DSA\f[]]
    890  1.1.1.11  christos Generate a new encrypted public/private sign key file of the specified type.
    891  1.1.1.11  christos By default, the sign key is the host key and has the same type.
    892  1.1.1.11  christos If compatibility with FIPS 140-2 is required, the sign key type must be
    893  1.1.1.11  christos \f\*[B-Font]DSA\f[].
    894  1.1.1.11  christos .TP 7
    895  1.1.1.11  christos .NOP \f\*[B-Font]\-T\f[] \f\*[B-Font]\-\-trusted-cert\f[]
    896       1.1  christos Generate a trusted certificate.
    897       1.1  christos By default, the program generates a non-trusted certificate.
    898       1.1  christos .TP 7
    899  1.1.1.11  christos .NOP \f\*[B-Font]\-V\f[] \f\*[B-Font]\-\-mv-params\f[] \f\*[I-Font]nkeys\f[]
    900  1.1.1.11  christos Generate
    901  1.1.1.11  christos \f\*[I-Font]nkeys\f[]
    902  1.1.1.11  christos encrypted server keys and parameters for the Mu-Varadharajan (MV)
    903  1.1.1.11  christos identity scheme.
    904  1.1.1.11  christos This option is mutually exclusive with the
    905  1.1.1.11  christos \f\*[B-Font]\-I\f[]
    906  1.1.1.11  christos and
    907  1.1.1.11  christos \f\*[B-Font]\-G\f[]
    908  1.1.1.11  christos options.
    909  1.1.1.11  christos Note: support for this option should be considered a work in progress.
    910       1.1  christos .PP
    911       1.1  christos .SS Random Seed File
    912       1.1  christos All cryptographically sound key generation schemes must have means
    913       1.1  christos to randomize the entropy seed used to initialize
    914       1.1  christos the internal pseudo-random number generator used
    915       1.1  christos by the library routines.
    916       1.1  christos The OpenSSL library uses a designated random seed file for this purpose.
    917       1.1  christos The file must be available when starting the NTP daemon and
    918       1.1  christos \f\*[B-Font]ntp-keygen\fP
    919       1.1  christos program.
    920       1.1  christos If a site supports OpenSSL or its companion OpenSSH,
    921       1.1  christos it is very likely that means to do this are already available.
    922       1.1  christos .sp \n(Ppu
    923       1.1  christos .ne 2
    924       1.1  christos 
    925       1.1  christos It is important to understand that entropy must be evolved
    926       1.1  christos for each generation, for otherwise the random number sequence
    927       1.1  christos would be predictable.
    928       1.1  christos Various means dependent on external events, such as keystroke intervals,
    929       1.1  christos can be used to do this and some systems have built-in entropy sources.
    930       1.1  christos Suitable means are described in the OpenSSL software documentation,
    931       1.1  christos but are outside the scope of this page.
    932       1.1  christos .sp \n(Ppu
    933       1.1  christos .ne 2
    934       1.1  christos 
    935       1.1  christos The entropy seed used by the OpenSSL library is contained in a file,
    936       1.1  christos usually called
    937  1.1.1.11  christos \fI.rnd\f[],
    938       1.1  christos which must be available when starting the NTP daemon
    939       1.1  christos or the
    940       1.1  christos \f\*[B-Font]ntp-keygen\fP
    941       1.1  christos program.
    942       1.1  christos The NTP daemon will first look for the file
    943       1.1  christos using the path specified by the
    944       1.1  christos \f\*[B-Font]randfile\f[]
    945       1.1  christos subcommand of the
    946       1.1  christos \f\*[B-Font]crypto\f[]
    947       1.1  christos configuration command.
    948       1.1  christos If not specified in this way, or when starting the
    949       1.1  christos \f\*[B-Font]ntp-keygen\fP
    950       1.1  christos program,
    951       1.1  christos the OpenSSL library will look for the file using the path specified
    952       1.1  christos by the
    953       1.1  christos RANDFILE
    954       1.1  christos environment variable in the user home directory,
    955       1.1  christos whether root or some other user.
    956       1.1  christos If the
    957       1.1  christos RANDFILE
    958       1.1  christos environment variable is not present,
    959       1.1  christos the library will look for the
    960  1.1.1.11  christos \fI.rnd\f[]
    961       1.1  christos file in the user home directory.
    962  1.1.1.11  christos Since both the
    963  1.1.1.11  christos \f\*[B-Font]ntp-keygen\fP
    964  1.1.1.11  christos program and
    965  1.1.1.11  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
    966  1.1.1.11  christos daemon must run as root, the logical place to put this file is in
    967  1.1.1.11  christos \fI/.rnd\f[]
    968  1.1.1.11  christos or
    969  1.1.1.11  christos \fI/root/.rnd\f[].
    970       1.1  christos If the file is not available or cannot be written,
    971       1.1  christos the daemon exits with a message to the system log and the program
    972       1.1  christos exits with a suitable error message.
    973       1.1  christos .SS Cryptographic Data Files
    974  1.1.1.11  christos All file formats begin with two nonencrypted lines.
    975  1.1.1.11  christos The first line contains the file name, including the generated host name
    976  1.1.1.11  christos and filestamp, in the format
    977  1.1.1.11  christos \fIntpkey_\f[]\f\*[I-Font]key\f[] \f\*[I-Font]_\f[] \f\*[I-Font]name\f[]. \f\*[I-Font]filestamp\f[],
    978  1.1.1.11  christos where
    979  1.1.1.11  christos \f\*[I-Font]key\f[]
    980  1.1.1.11  christos is the key or parameter type,
    981  1.1.1.11  christos \f\*[I-Font]name\f[]
    982  1.1.1.11  christos is the host or group name and
    983  1.1.1.11  christos \f\*[I-Font]filestamp\f[]
    984  1.1.1.11  christos is the filestamp (NTP seconds) when the file was created.
    985  1.1.1.11  christos By convention,
    986  1.1.1.11  christos \f\*[I-Font]key\f[]
    987  1.1.1.11  christos names in generated file names include both upper and lower case
    988  1.1.1.11  christos characters, while
    989  1.1.1.11  christos \f\*[I-Font]key\f[]
    990  1.1.1.11  christos names in generated link names include only lower case characters.
    991  1.1.1.11  christos The filestamp is not used in generated link names.
    992  1.1.1.11  christos The second line contains the datestamp in conventional Unix
    993  1.1.1.11  christos \fIdate\f[]
    994  1.1.1.11  christos format.
    995  1.1.1.11  christos Lines beginning with
    996  1.1.1.11  christos \[oq]#\[cq]
    997  1.1.1.11  christos are considered comments and ignored by the
    998       1.1  christos \f\*[B-Font]ntp-keygen\fP
    999       1.1  christos program and
   1000   1.1.1.4  christos \fCntpd\f[]\fR(1ntpdmdoc)\f[]
   1001       1.1  christos daemon.
   1002       1.1  christos .sp \n(Ppu
   1003       1.1  christos .ne 2
   1004       1.1  christos 
   1005  1.1.1.11  christos The remainder of the file contains cryptographic data, encoded first using ASN.1
   1006  1.1.1.11  christos rules, then encrypted if necessary, and finally written in PEM-encoded
   1007  1.1.1.11  christos printable ASCII text, preceded and followed by MIME content identifier lines.
   1008  1.1.1.11  christos .sp \n(Ppu
   1009  1.1.1.11  christos .ne 2
   1010  1.1.1.11  christos 
   1011  1.1.1.11  christos The format of the symmetric keys file, ordinarily named
   1012  1.1.1.11  christos \fIntp.keys\f[],
   1013  1.1.1.11  christos is somewhat different than the other files in the interest of backward compatibility.
   1014  1.1.1.11  christos Ordinarily, the file is generated by this program, but it can be constructed
   1015  1.1.1.11  christos and edited using an ordinary text editor.
   1016  1.1.1.11  christos .br
   1017  1.1.1.11  christos .in +4
   1018  1.1.1.11  christos .nf
   1019  1.1.1.11  christos # ntpkey_MD5key_bk.ntp.org.3595864945
   1020  1.1.1.11  christos # Thu Dec 12 19:22:25 2013
   1021  1.1.1.11  christos 1  MD5 L";Nw<\`.I<f4U0)247"i  # MD5 key
   1022  1.1.1.11  christos 2  MD5 &>l0%XXK9O'51VwV<xq~  # MD5 key
   1023  1.1.1.11  christos 3  MD5 lb4zLW~d^!K:]RsD'qb6  # MD5 key
   1024  1.1.1.11  christos 4  MD5 Yue:tL[+vR)M\`n~bY,'?  # MD5 key
   1025  1.1.1.11  christos 5  MD5 B;fx'Kgr/&4ZTbL6=RxA  # MD5 key
   1026  1.1.1.11  christos 6  MD5 4eYwa\`o}3i@@@@V@@..R9!l  # MD5 key
   1027  1.1.1.11  christos 7  MD5 \`A.([h+;wTQ|xfi%Sn_!  # MD5 key
   1028  1.1.1.11  christos 8  MD5 45:V,r4]l6y^JH6"Sh?F  # MD5 key
   1029  1.1.1.11  christos 9  MD5 3-5vcn*6l29DS?Xdsg)*  # MD5 key
   1030  1.1.1.11  christos 10 MD5 2late4Me              # MD5 key
   1031  1.1.1.11  christos 11 SHA1 a27872d3030a9025b8446c751b4551a7629af65c  # SHA1 key
   1032  1.1.1.11  christos 12 SHA1 21bc3b4865dbb9e920902abdccb3e04ff97a5e74  # SHA1 key
   1033  1.1.1.11  christos 13 SHA1 2b7736fe24fef5ba85ae11594132ab5d6f6daba9  # SHA1 key
   1034  1.1.1.11  christos 14 SHA  a5332809c8878dd3a5b918819108a111509aeceb  # SHA  key
   1035  1.1.1.11  christos 15 MD2  2fe16c88c760ff2f16d4267e36c1aa6c926e6964  # MD2  key
   1036  1.1.1.11  christos 16 MD4  b2691811dc19cfc0e2f9bcacd74213f29812183d  # MD4  key
   1037  1.1.1.11  christos 17 MD5  e4d6735b8bdad58ec5ffcb087300a17f7fef1f7c  # MD5  key
   1038  1.1.1.11  christos 18 MDC2 a8d5e2315c025bf3a79174c87fbd10477de2eabc  # MDC2 key
   1039  1.1.1.11  christos 19 RIPEMD160 77ca332cafb30e3cafb174dcd5b80ded7ba9b3d2  # RIPEMD160 key
   1040  1.1.1.11  christos 20 AES128CMAC f92ff73eee86c1e7dc638d6489a04e4e555af878  # AES128CMAC key
   1041  1.1.1.11  christos .in -4
   1042  1.1.1.11  christos .fi
   1043  1.1.1.11  christos .in +4
   1044  1.1.1.11  christos Figure 1. Typical Symmetric Key File
   1045  1.1.1.11  christos .in -4
   1046  1.1.1.11  christos .sp \n(Ppu
   1047  1.1.1.11  christos .ne 2
   1048  1.1.1.11  christos 
   1049  1.1.1.11  christos Figure 1 shows a typical symmetric keys file used by the reference
   1050  1.1.1.11  christos implementation.
   1051  1.1.1.11  christos Following the header the keys are entered one per line in the format
   1052       1.1  christos .in +4
   1053       1.1  christos \f\*[I-Font]keyno\f[] \f\*[I-Font]type\f[] \f\*[I-Font]key\f[]
   1054       1.1  christos .in -4
   1055       1.1  christos where
   1056       1.1  christos \f\*[I-Font]keyno\f[]
   1057  1.1.1.12  christos is a positive integer in the range 1-65535;
   1058       1.1  christos \f\*[I-Font]type\f[]
   1059  1.1.1.11  christos is the key type for the message digest algorithm, which in the absence of the
   1060  1.1.1.11  christos OpenSSL library must be
   1061  1.1.1.11  christos \f\*[B-Font]MD5\f[]
   1062  1.1.1.11  christos to designate the MD5 message digest algorithm;
   1063  1.1.1.11  christos if the OpenSSL library is installed, the key type can be any
   1064  1.1.1.11  christos message digest algorithm supported by that library;
   1065  1.1.1.11  christos however, if compatibility with FIPS 140-2 is required,
   1066  1.1.1.11  christos the key type must be either
   1067  1.1.1.11  christos \f\*[B-Font]SHA\f[]
   1068  1.1.1.11  christos or
   1069  1.1.1.11  christos \f\*[B-Font]SHA1\f[];
   1070       1.1  christos \f\*[I-Font]key\f[]
   1071       1.1  christos is the key itself,
   1072  1.1.1.11  christos which is a printable ASCII string 20 characters or less in length:
   1073  1.1.1.11  christos each character is chosen from the 93 printable characters
   1074  1.1.1.11  christos in the range 0x21 through 0x7e (
   1075  1.1.1.11  christos \[oq]\[cq]!
   1076  1.1.1.11  christos through
   1077  1.1.1.11  christos \[oq]~\[cq]
   1078  1.1.1.11  christos \&) excluding space and the
   1079  1.1.1.11  christos \[oq]#\[cq]
   1080  1.1.1.11  christos character, and terminated by whitespace or a
   1081       1.1  christos \[oq]#\[cq]
   1082       1.1  christos character.
   1083  1.1.1.11  christos An OpenSSL key consists of a hex-encoded ASCII string of 40 characters, which
   1084  1.1.1.11  christos is truncated as necessary.
   1085       1.1  christos .sp \n(Ppu
   1086       1.1  christos .ne 2
   1087       1.1  christos 
   1088       1.1  christos Note that the keys used by the
   1089   1.1.1.4  christos \fCntpq\f[]\fR(1ntpqmdoc)\f[]
   1090       1.1  christos and
   1091   1.1.1.4  christos \fCntpdc\f[]\fR(1ntpdcmdoc)\f[]
   1092       1.1  christos programs
   1093       1.1  christos are checked against passwords requested by the programs
   1094       1.1  christos and entered by hand, so it is generally appropriate to specify these keys
   1095       1.1  christos in human readable ASCII format.
   1096       1.1  christos .sp \n(Ppu
   1097       1.1  christos .ne 2
   1098       1.1  christos 
   1099       1.1  christos The
   1100       1.1  christos \f\*[B-Font]ntp-keygen\fP
   1101  1.1.1.11  christos program generates a symmetric keys file
   1102  1.1.1.11  christos \fIntpkey_MD5key_\f[]\f\*[I-Font]hostname\f[]. \f\*[I-Font]filestamp\f[].
   1103       1.1  christos Since the file contains private shared keys,
   1104       1.1  christos it should be visible only to root and distributed by secure means
   1105       1.1  christos to other subnet hosts.
   1106       1.1  christos The NTP daemon loads the file
   1107       1.1  christos \fIntp.keys\f[],
   1108       1.1  christos so
   1109       1.1  christos \f\*[B-Font]ntp-keygen\fP
   1110       1.1  christos installs a soft link from this name to the generated file.
   1111       1.1  christos Subsequently, similar soft links must be installed by manual
   1112       1.1  christos or automated means on the other subnet hosts.
   1113       1.1  christos While this file is not used with the Autokey Version 2 protocol,
   1114       1.1  christos it is needed to authenticate some remote configuration commands
   1115       1.1  christos used by the
   1116   1.1.1.4  christos \fCntpq\f[]\fR(1ntpqmdoc)\f[]
   1117       1.1  christos and
   1118   1.1.1.4  christos \fCntpdc\f[]\fR(1ntpdcmdoc)\f[]
   1119       1.1  christos utilities.
   1120       1.1  christos .SH "OPTIONS"
   1121       1.1  christos .TP
   1122       1.1  christos .NOP \f\*[B-Font]\-b\f[] \f\*[I-Font]imbits\f[], \f\*[B-Font]\-\-imbits\f[]=\f\*[I-Font]imbits\f[]
   1123       1.1  christos identity modulus bits.
   1124       1.1  christos This option takes an integer number as its argument.
   1125       1.1  christos The value of
   1126       1.1  christos \f\*[I-Font]imbits\f[]
   1127       1.1  christos is constrained to being:
   1128       1.1  christos .in +4
   1129       1.1  christos .nf
   1130       1.1  christos .na
   1131       1.1  christos in the range  256 through 2048
   1132       1.1  christos .fi
   1133       1.1  christos .in -4
   1134       1.1  christos .sp
   1135  1.1.1.15  christos The number of bits in the identity modulus.  The default is 512.
   1136       1.1  christos .TP
   1137       1.1  christos .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]scheme\f[], \f\*[B-Font]\-\-certificate\f[]=\f\*[I-Font]scheme\f[]
   1138       1.1  christos certificate scheme.
   1139       1.1  christos .sp
   1140       1.1  christos scheme is one of
   1141  1.1.1.11  christos RSA-MD2, RSA-MD5, RSA-MDC2, RSA-SHA, RSA-SHA1, RSA-RIPEMD160,
   1142       1.1  christos DSA-SHA, or DSA-SHA1.
   1143       1.1  christos .sp
   1144  1.1.1.11  christos Select the certificate signature encryption/message digest scheme.
   1145       1.1  christos Note that RSA schemes must be used with a RSA sign key and DSA
   1146       1.1  christos schemes must be used with a DSA sign key.  The default without
   1147       1.1  christos this option is RSA-MD5.
   1148       1.1  christos .TP
   1149       1.1  christos .NOP \f\*[B-Font]\-C\f[] \f\*[I-Font]cipher\f[], \f\*[B-Font]\-\-cipher\f[]=\f\*[I-Font]cipher\f[]
   1150       1.1  christos privatekey cipher.
   1151       1.1  christos .sp
   1152       1.1  christos Select the cipher which is used to encrypt the files containing
   1153       1.1  christos private keys.  The default is three-key triple DES in CBC mode,
   1154  1.1.1.11  christos equivalent to "\fB-C des-ede3-cbc\fP".  The openssl tool lists ciphers
   1155       1.1  christos available in "\fBopenssl \-h\fP" output.
   1156       1.1  christos .TP
   1157       1.1  christos .NOP \f\*[B-Font]\-d\f[], \f\*[B-Font]\-\-debug\-level\f[]
   1158       1.1  christos Increase debug verbosity level.
   1159       1.1  christos This option may appear an unlimited number of times.
   1160       1.1  christos .sp
   1161       1.1  christos .TP
   1162       1.1  christos .NOP \f\*[B-Font]\-D\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-set\-debug\-level\f[]=\f\*[I-Font]number\f[]
   1163       1.1  christos Set the debug verbosity level.
   1164       1.1  christos This option may appear an unlimited number of times.
   1165       1.1  christos This option takes an integer number as its argument.
   1166       1.1  christos .sp
   1167       1.1  christos .TP
   1168       1.1  christos .NOP \f\*[B-Font]\-e\f[], \f\*[B-Font]\-\-id\-key\f[]
   1169       1.1  christos Write IFF or GQ identity keys.
   1170       1.1  christos .sp
   1171  1.1.1.11  christos Write the public parameters from the IFF or GQ client keys to
   1172  1.1.1.11  christos the standard output.
   1173  1.1.1.11  christos This is intended for automatic key distribution by email.
   1174       1.1  christos .TP
   1175       1.1  christos .NOP \f\*[B-Font]\-G\f[], \f\*[B-Font]\-\-gq\-params\f[]
   1176       1.1  christos Generate GQ parameters and keys.
   1177       1.1  christos .sp
   1178       1.1  christos Generate parameters and keys for the GQ identification scheme,
   1179       1.1  christos obsoleting any that may exist.
   1180       1.1  christos .TP
   1181       1.1  christos .NOP \f\*[B-Font]\-H\f[], \f\*[B-Font]\-\-host\-key\f[]
   1182       1.1  christos generate RSA host key.
   1183       1.1  christos .sp
   1184       1.1  christos Generate new host keys, obsoleting any that may exist.
   1185       1.1  christos .TP
   1186       1.1  christos .NOP \f\*[B-Font]\-I\f[], \f\*[B-Font]\-\-iffkey\f[]
   1187       1.1  christos generate IFF parameters.
   1188       1.1  christos .sp
   1189       1.1  christos Generate parameters for the IFF identification scheme, obsoleting
   1190       1.1  christos any that may exist.
   1191       1.1  christos .TP
   1192       1.1  christos .NOP \f\*[B-Font]\-i\f[] \f\*[I-Font]group\f[], \f\*[B-Font]\-\-ident\f[]=\f\*[I-Font]group\f[]
   1193       1.1  christos set Autokey group name.
   1194       1.1  christos .sp
   1195       1.1  christos Set the optional Autokey group name to name.  This is used in
   1196       1.1  christos the file name of IFF, GQ, and MV client parameters files.  In
   1197       1.1  christos that role, the default is the host name if this option is not
   1198       1.1  christos provided.  The group name, if specified using \fB-i/--ident\fP or
   1199  1.1.1.11  christos using \fB-s/--subject-name\fP following an '\fB@@\fP' character,
   1200  1.1.1.11  christos is also a part of the self-signed host certificate subject and
   1201  1.1.1.11  christos issuer names in the form \fBhost@@group\fP and should match the
   1202  1.1.1.11  christos '\fBcrypto ident\fP' or '\fBserver ident\fP' configuration in the
   1203  1.1.1.11  christos \fBntpd\fP configuration file.
   1204       1.1  christos .TP
   1205       1.1  christos .NOP \f\*[B-Font]\-l\f[] \f\*[I-Font]lifetime\f[], \f\*[B-Font]\-\-lifetime\f[]=\f\*[I-Font]lifetime\f[]
   1206       1.1  christos set certificate lifetime.
   1207       1.1  christos This option takes an integer number as its argument.
   1208       1.1  christos .sp
   1209       1.1  christos Set the certificate expiration to lifetime days from now.
   1210       1.1  christos .TP
   1211       1.1  christos .NOP \f\*[B-Font]\-m\f[] \f\*[I-Font]modulus\f[], \f\*[B-Font]\-\-modulus\f[]=\f\*[I-Font]modulus\f[]
   1212  1.1.1.11  christos prime modulus.
   1213       1.1  christos This option takes an integer number as its argument.
   1214       1.1  christos The value of
   1215       1.1  christos \f\*[I-Font]modulus\f[]
   1216       1.1  christos is constrained to being:
   1217       1.1  christos .in +4
   1218       1.1  christos .nf
   1219       1.1  christos .na
   1220       1.1  christos in the range  256 through 2048
   1221       1.1  christos .fi
   1222       1.1  christos .in -4
   1223       1.1  christos .sp
   1224       1.1  christos The number of bits in the prime modulus.  The default is 512.
   1225       1.1  christos .TP
   1226  1.1.1.11  christos .NOP \f\*[B-Font]\-M\f[], \f\*[B-Font]\-\-md5key\f[]
   1227  1.1.1.11  christos generate symmetric keys.
   1228  1.1.1.11  christos .sp
   1229  1.1.1.11  christos Generate symmetric keys, obsoleting any that may exist.
   1230  1.1.1.11  christos .TP
   1231       1.1  christos .NOP \f\*[B-Font]\-P\f[], \f\*[B-Font]\-\-pvt\-cert\f[]
   1232       1.1  christos generate PC private certificate.
   1233       1.1  christos .sp
   1234       1.1  christos Generate a private certificate.  By default, the program generates
   1235       1.1  christos public certificates.
   1236       1.1  christos .TP
   1237   1.1.1.2  christos .NOP \f\*[B-Font]\-p\f[] \f\*[I-Font]passwd\f[], \f\*[B-Font]\-\-password\f[]=\f\*[I-Font]passwd\f[]
   1238   1.1.1.2  christos local private password.
   1239       1.1  christos .sp
   1240   1.1.1.2  christos Local files containing private data are encrypted with the
   1241   1.1.1.2  christos DES-CBC algorithm and the specified password.  The same password
   1242   1.1.1.2  christos must be specified to the local ntpd via the "crypto pw password"
   1243   1.1.1.2  christos configuration command.  The default password is the local
   1244   1.1.1.2  christos hostname.
   1245   1.1.1.2  christos .TP
   1246   1.1.1.2  christos .NOP \f\*[B-Font]\-q\f[] \f\*[I-Font]passwd\f[], \f\*[B-Font]\-\-export\-passwd\f[]=\f\*[I-Font]passwd\f[]
   1247   1.1.1.2  christos export IFF or GQ group keys with password.
   1248   1.1.1.2  christos .sp
   1249   1.1.1.2  christos Export IFF or GQ identity group keys to the standard output,
   1250   1.1.1.2  christos encrypted with the DES-CBC algorithm and the specified password.
   1251   1.1.1.2  christos The same password must be specified to the remote ntpd via the
   1252   1.1.1.2  christos "crypto pw password" configuration command.  See also the option
   1253   1.1.1.2  christos --id-key (-e) for unencrypted exports.
   1254       1.1  christos .TP
   1255       1.1  christos .NOP \f\*[B-Font]\-s\f[] \f\*[I-Font]host@group\f[], \f\*[B-Font]\-\-subject\-name\f[]=\f\*[I-Font]host@group\f[]
   1256       1.1  christos set host and optionally group name.
   1257       1.1  christos .sp
   1258       1.1  christos Set the Autokey host name, and optionally, group name specified
   1259  1.1.1.11  christos following an '\fB@@\fP' character.  The host name is used in the file
   1260       1.1  christos name of generated host and signing certificates, without the
   1261       1.1  christos group name.  The host name, and if provided, group name are used
   1262  1.1.1.11  christos in \fBhost@@group\fP form for the host certificate subject and issuer
   1263  1.1.1.11  christos fields.  Specifying '\fB-s @@group\fP' is allowed, and results in
   1264  1.1.1.11  christos leaving the host name unchanged while appending \fB@@group\fP to the
   1265       1.1  christos subject and issuer fields, as with \fB-i group\fP.  The group name, or
   1266       1.1  christos if not provided, the host name are also used in the file names
   1267       1.1  christos of IFF, GQ, and MV client parameter files.
   1268       1.1  christos .TP
   1269  1.1.1.11  christos .NOP \f\*[B-Font]\-S\f[] \f\*[I-Font]sign\f[], \f\*[B-Font]\-\-sign\-key\f[]=\f\*[I-Font]sign\f[]
   1270  1.1.1.11  christos generate sign key (RSA or DSA).
   1271  1.1.1.11  christos .sp
   1272  1.1.1.11  christos Generate a new sign key of the designated type, obsoleting any
   1273  1.1.1.11  christos that may exist.  By default, the program uses the host key as the
   1274  1.1.1.11  christos sign key.
   1275  1.1.1.11  christos .TP
   1276       1.1  christos .NOP \f\*[B-Font]\-T\f[], \f\*[B-Font]\-\-trusted\-cert\f[]
   1277       1.1  christos trusted certificate (TC scheme).
   1278       1.1  christos .sp
   1279       1.1  christos Generate a trusted certificate.  By default, the program generates
   1280       1.1  christos a non-trusted certificate.
   1281       1.1  christos .TP
   1282       1.1  christos .NOP \f\*[B-Font]\-V\f[] \f\*[I-Font]num\f[], \f\*[B-Font]\-\-mv\-params\f[]=\f\*[I-Font]num\f[]
   1283       1.1  christos generate <num> MV parameters.
   1284       1.1  christos This option takes an integer number as its argument.
   1285       1.1  christos .sp
   1286       1.1  christos Generate parameters and keys for the Mu-Varadharajan (MV)
   1287       1.1  christos identification scheme.
   1288       1.1  christos .TP
   1289       1.1  christos .NOP \f\*[B-Font]\-v\f[] \f\*[I-Font]num\f[], \f\*[B-Font]\-\-mv\-keys\f[]=\f\*[I-Font]num\f[]
   1290       1.1  christos update <num> MV keys.
   1291       1.1  christos This option takes an integer number as its argument.
   1292       1.1  christos .sp
   1293       1.1  christos This option has not been fully documented.
   1294       1.1  christos .TP
   1295       1.1  christos .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
   1296       1.1  christos Display usage information and exit.
   1297       1.1  christos .TP
   1298       1.1  christos .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
   1299       1.1  christos Pass the extended usage information through a pager.
   1300       1.1  christos .TP
   1301       1.1  christos .NOP \f\*[B-Font]\->\f[] [\f\*[I-Font]cfgfile\f[]], \f\*[B-Font]\-\-save-opts\f[] [=\f\*[I-Font]cfgfile\f[]]
   1302       1.1  christos Save the option state to \fIcfgfile\fP.  The default is the \fIlast\fP
   1303       1.1  christos configuration file listed in the \fBOPTION PRESETS\fP section, below.
   1304       1.1  christos The command will exit after updating the config file.
   1305       1.1  christos .TP
   1306       1.1  christos .NOP \f\*[B-Font]\-<\f[] \f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-load-opts\f[]=\f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-no-load-opts\f[]
   1307       1.1  christos Load options from \fIcfgfile\fP.
   1308       1.1  christos The \fIno-load-opts\fP form will disable the loading
   1309       1.1  christos of earlier config/rc/ini files.  \fI\-\-no-load-opts\fP is handled early,
   1310       1.1  christos out of order.
   1311       1.1  christos .TP
   1312       1.1  christos .NOP \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]
   1313       1.1  christos Output version of program and exit.  The default mode is `v', a simple
   1314       1.1  christos version.  The `c' mode will print copyright information and `n' will
   1315       1.1  christos print the full copyright notice.
   1316       1.1  christos .PP
   1317       1.1  christos .SH "OPTION PRESETS"
   1318       1.1  christos Any option that is not marked as \fInot presettable\fP may be preset
   1319       1.1  christos by loading values from configuration ("RC" or ".INI") file(s) and values from
   1320       1.1  christos environment variables named:
   1321       1.1  christos .nf
   1322       1.1  christos   \fBNTP_KEYGEN_<option-name>\fP or \fBNTP_KEYGEN\fP
   1323       1.1  christos .fi
   1324       1.1  christos .ad
   1325       1.1  christos The environmental presets take precedence (are processed later than)
   1326       1.1  christos the configuration files.
   1327       1.1  christos The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
   1328       1.1  christos If any of these are directories, then the file \fI.ntprc\fP
   1329       1.1  christos is searched for within those directories.
   1330       1.1  christos .SH USAGE
   1331       1.1  christos .SH "ENVIRONMENT"
   1332       1.1  christos See \fBOPTION PRESETS\fP for configuration environment variables.
   1333       1.1  christos .SH "FILES"
   1334       1.1  christos See \fBOPTION PRESETS\fP for configuration files.
   1335       1.1  christos .SH "EXIT STATUS"
   1336       1.1  christos One of the following exit values will be returned:
   1337       1.1  christos .TP
   1338       1.1  christos .NOP 0 " (EXIT_SUCCESS)"
   1339       1.1  christos Successful program execution.
   1340       1.1  christos .TP
   1341       1.1  christos .NOP 1 " (EXIT_FAILURE)"
   1342       1.1  christos The operation failed or the command syntax was not valid.
   1343       1.1  christos .TP
   1344       1.1  christos .NOP 66 " (EX_NOINPUT)"
   1345       1.1  christos A specified configuration file could not be loaded.
   1346       1.1  christos .TP
   1347       1.1  christos .NOP 70 " (EX_SOFTWARE)"
   1348       1.1  christos libopts had an internal operational error.  Please report
   1349       1.1  christos it to autogen-users (a] lists.sourceforge.net.  Thank you.
   1350       1.1  christos .PP
   1351       1.1  christos .SH "AUTHORS"
   1352   1.1.1.3  christos The University of Delaware and Network Time Foundation
   1353       1.1  christos .SH "COPYRIGHT"
   1354  1.1.1.15  christos Copyright (C) 1992-2024 The University of Delaware and Network Time Foundation all rights reserved.
   1355       1.1  christos This program is released under the terms of the NTP license, <http://ntp.org/license>.
   1356       1.1  christos .SH BUGS
   1357  1.1.1.11  christos It can take quite a while to generate some cryptographic values.
   1358       1.1  christos .sp \n(Ppu
   1359       1.1  christos .ne 2
   1360       1.1  christos 
   1361       1.1  christos Please report bugs to http://bugs.ntp.org .
   1362       1.1  christos .sp \n(Ppu
   1363       1.1  christos .ne 2
   1364       1.1  christos 
   1365  1.1.1.15  christos Please send bug reports to: https://bugs.ntp.org, bugs (a] ntp.org
   1366       1.1  christos .SH NOTES
   1367       1.1  christos Portions of this document came from FreeBSD.
   1368       1.1  christos .sp \n(Ppu
   1369       1.1  christos .ne 2
   1370       1.1  christos 
   1371       1.1  christos This manual page was \fIAutoGen\fP-erated from the \fBntp-keygen\fP
   1372       1.1  christos option definitions.
   1373