ntp-keygen − Create a NTP host key


ntp-keygen [flag [value]]... [−-opt-name [[=| ]value]]...

All arguments must be options.


This manual page briefly documents the ntp-keygen command. If there is no new host key, look for an existing one. If one is not found, create it.


−c scheme, −-certificate=scheme

certificate scheme.

scheme is one of RSA-MD2, RSA-MD5, RSA-SHA, RSA-SHA1, RSA-MDC2, RSA-RIPEMD160, DSA-SHA, or DSA-SHA1.

Select the certificate message digest/signature encryption scheme. Note that RSA schemes must be used with a RSA sign key and DSA schemes must be used with a DSA sign key. The default without this option is RSA-MD5.

−d, −-debug-level

Increase output debug message level. This option may appear an unlimited number of times.

Increase the debugging message output level.

−D string, −-set-debug-level=string

Set the output debug message level. This option may appear an unlimited number of times.

Set the output debugging level. Can be supplied multiple times, but each overrides the previous value(s).

−e, −-id-key

Write IFF or GQ identity keys.

Write the IFF or GQ client keys to the standard output. This is intended for automatic key distribution by mail.

−G, −-gq-params

Generate GQ parameters and keys.

Generate parameters and keys for the GQ identification scheme, obsoleting any that may exist.

−H, −-host-key

generate RSA host key.

Generate new host keys, obsoleting any that may exist.

−I, −-iffkey

generate IFF parameters.

Generate parameters for the IFF identification scheme, obsoleting any that may exist.

−i issuer-name, −-issuer-name=issuer-name

set issuer name.

Set the suject name to name. This is used as the subject field in certificates and in the file name for host and sign keys.

−M, −-md5key

generate MD5 keys.

Generate MD5 keys, obsoleting any that may exist.

−m modulus, −-modulus=modulus

modulus. This option takes an integer number as its argument. The value of modulus is constrained to being:

in the range 256 through 2048

The number of bits in the prime modulus. The default is 512.

−P, −-pvt-cert

generate PC private certificate.

Generate a private certificate. By default, the program generates public certificates.

−p passwd, −-pvt-passwd=passwd

output private password.

Encrypt generated files containing private data with the specified password and the DES-CBC algorithm.

−q passwd, −-get-pvt-passwd=passwd

input private password.

Set the password for reading files to the specified password.

−S sign, −-sign-key=sign

generate sign key (RSA or DSA).

Generate a new sign key of the designated type, obsoleting any that may exist. By default, the program uses the host key as the sign key.

−s host, −-subject-name=host

set subject name.

Set the issuer name to name. This is used for the issuer field in certificates and in the file name for identity files.

−T, −-trusted-cert

trusted certificate (TC scheme).

Generate a trusted certificate. By default, the program generates a non-trusted certificate.

−V num, −-mv-params=num

generate <num> MV parameters. This option takes an integer number as its argument.

Generate parameters and keys for the Mu-Varadharajan (MV) identification scheme.

−v num, −-mv-keys=num

update <num> MV keys. This option takes an integer number as its argument.

This option has not been fully documented.

−?, −-help

Display extended usage information and exit.

−!, −-more-help

Extended usage information passed thru pager.

−> [rcfile], −-save-opts[=rcfile]

Save the option state to rcfile. The default is the last configuration file listed in the OPTION PRESETS section, below.

−< rcfile, −-load-opts=rcfile, −-no-load-opts

Load options from rcfile. The no-load-opts form will disable the loading of earlier RC/INI files. --no-load-opts is handled early, out of order.

[{v|c|n}], −-version[={v|c|n}]

Output version of program and exit. The default mode is ‘v’, a simple version. The ‘c’ mode will print copyright information and ‘n’ will print the full copyright notice.


Any option that is not marked as not presettable may be preset by loading values from configuration ("RC" or ".INI") file(s) and values from environment variables named:
The environmental presets take precedence (are processed later than) the configuration files. The homerc files are "$HOME", and ".". If any of these are directories, then the file .ntprc is searched for within those directories.


David L. Mills and/or others
Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org

see html/copyright.html

This manual page was AutoGen-erated from the ntp-keygen option definitions.

More Linux Commands

setnetent(3) - get network entry (Library - Linux man page)
The getnetent() function reads the next entry from the networks database and returns a netent structure containing the broken-out fields from the entry. A conne

XkbAllocGeomOverlayKey(3) - Allocate keys in an overlay row
XkbAllocGeomOverlayKey.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify

getresuid32(2) - get real, effective and saved user/group ID
getresuid() returns the real UID, the effective UID, and the saved set-user-ID of the calling process, in the arguments ruid, euid, and suid, respectively. getr

form_request_name(3form) - handle printable form request nam
The function form_request_name returns the printable name of a form request code. The function form_request_by_name searches in the name-table for a request wit

gst-visualise-0.10(1) - Run a GStreamer pipeline to display
gst-visualise is a tool that is used to run a basic GStreamer pipeline, to display a graphical visualisation of an audio stream. By default, the audio stream is

TAP::Parser::Grammar(3pm) - A grammar for the Test Anything
TAP::Parser::Grammar tokenizes lines from a TAP::Parser::Iterator and constructs TAP::Parser::Result subclasses to represent the tokens. Do not attempt to use t

field_index(3form) - set and get form page number (ManPage)
The function set_current field sets the current field of the given form; current_field returns the current field of the given form. The function set_form_page s

gnutls_x509_crq_set_pubkey(3) - API function (Man Page).....
gnutls_x509_crq_set_pubkey.3 - This function will set the public parameters from the given public key to the request. RETURNS On success, GNUTLS_E_SUCCESS (0) i

yppoll(8) - return version and master server of a NIS map...
yppoll OPTIONS -h host Ask the NIS server process running on host for information about mapname. If host is not specified, the server polled is the default serv

XmbDrawString(3) - draw text using a single font set........
The XmbDrawString, XwcDrawString and Xutf8DrawString functions draw the specified text with the foreground pixel. When the XFontSet has missing charsets, each u

perlgpl(1) - the GNU General Public License, version 1......
Perl is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software F

dirmngr-client(1) - CRL and OCSP daemon - Linux manual page
The dirmngr-client is a simple tool to contact a running dirmngr and test whether a certificate has been revoked --either by being listed in the corresponding C

We can't live, work or learn in freedom unless the software we use is free.