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.


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.