Lines Matching full:code
73 <p>This document describes the use of the NTP Project’s <code>ntp-keygen</code>
87 <p>This document applies to version 4.2.8p18 of <code>ntp-keygen</code>.
133 The <code>-p</code> option specifies the password for local encrypted files and the
134 <code>-q</code> option the password for encrypted files sent to remote sites.
136 <code>gethostname()</code> function, normally the DNS name of the host, is used.
138 <p>The <kbd>pw</kbd> option of the <code>crypto</code> configuration command
149 The symmetric keys file, normally called <code>ntp.keys</code>, is
150 usually installed in <code>/etc</code>.
152 in <code>/usr/local/etc</code>, which is normally in a shared filesystem in
156 Normally, this is in <code>/etc</code>.
159 error stream <code>stderr</code> and remote files to the standard output stream
160 <code>stdout</code> where they can be piped to other applications or redirected to
163 string <code>ntpkey</code> and include the file type,
186 change to the keys directory, usually <code>/usr/local/etc</code>.
188 first time, or if all files with names beginning <code>ntpkey</code>] have been
189 removed, use the <code>ntp-keygen</code> command without arguments to generate a
197 Designate one of them as the trusted host (TH) using <code>ntp-keygen</code>
198 with the <code>-T</code> option and configure
209 A different sign key can be assigned using the <code>-S</code> option
214 using the <code>-c</code> option.
269 <code>ntpq(1ntpqmdoc)</code>
271 <code>ntpdc(1ntpdcmdoc)</code>
284 <code>-p</code>
286 <code>-q</code>
289 <code>hostname(1)</code>
293 <code>ntp-keygen</code>
301 <code>pw</code>
303 <code>crypto</code>
304 <code>ntpd(1ntpdmdoc)</code>
311 <code>ntpd(1ntpdmdoc)</code>
331 <code>keysdir</code>
332 <code>ntpd(1ntpdmdoc)</code>
404 <code>ntp-keygen</code>
420 <code>ntp-keygen</code>
422 <code>RSA</code>
424 <code>RSA-MD5</code>
434 <code>RSA</code>
439 <code>RSA</code>
441 <code>DSA</code>
444 <code>MD5</code>,
448 <code>AES128CMAC</code>, <code>MD2</code>, <code>MD5</code>, <code>MDC2</code>, <code>SHA</code>, <code>SHA1</code>
450 <code>RIPE160</code>
455 <code>RSA</code>
458 <code>SHA</code>
460 <code>SHA1</code>
462 <code>DSA</code>
474 <code>su(1)</code>
495 <code>keysdir</code>
496 <code>ntpd(1ntpdmdoc)</code>
544 <code>ntpd(1ntpdmdoc)</code>
548 <code>ntpd(1ntpdmdoc)</code>
555 <code>ntp-keygen</code>
564 <code>ntp-keygen</code>
566 <code>-T</code>
580 <code>-S</code>
582 <code>RSA</code>
584 <code>DSA</code>
588 <code>MD5</code>,
592 <code>-c</code>
618 <code>hostname(1)</code>
625 <code>rm</code> <samp>ntpkey*</samp>
628 <code>rm</code> <samp>*</samp><kbd>filestamp</kbd>
640 <code>ntp.conf(5)</code>.
642 <code>RSA</code>
644 <code>MD5</code>
647 <code>TC</code>
662 <code>ntp.conf(5)</code>.
669 <code>ntp-keygen</code>
670 <code>-T</code>
673 <code>-T</code>
682 <code>ntp-keygen</code>
684 <code>-S</code> <kbd>type</kbd>
688 <code>RSA</code>
690 <code>DSA</code>.
692 <code>DSA</code>-signed
696 <code>ntp-keygen</code>
698 <code>-c</code> <kbd>scheme</kbd>
703 <code>ntp-keygen</code>
710 <code>ntp-keygen</code>
714 <code>ntpd(1ntpdmdoc)</code>
717 <code>ntpd(1ntpdmdoc)</code>
725 <code>TC</code>
729 <code>PC</code>, <code>IFF</code>, <code>GQ</code>
731 <code>MV</code>
753 <code>ntp-keygen</code>
754 <code>-P</code>
755 <code>-p</code> <kbd>password</kbd>
757 <samp>ntpkey</samp>_ <code>RSA</code> <samp>key_alice.</samp> <kbd>filestamp</kbd>
759 <samp>ntpkey</samp>_ <code>RSA-MD5</code> <code>_</code> <samp>cert_alice.</samp> <kbd>filestamp</kbd>,
777 <code>IFF</code>
779 <code>TC</code>
783 <code>IFF</code>
786 <code>ntp-keygen</code>
787 <code>-T</code>
788 <code>-I</code>
789 <code>-p</code> <kbd>password</kbd>
800 <code>IFF</code>
809 <code>ntp-keygen</code>
810 <code>-e</code>
820 <code>GQ</code>
822 <code>TC</code>
826 <code>IFF</code>
829 <code>ntp-keygen</code>
830 <code>-T</code>
831 <code>-G</code>
832 <code>-p</code> <kbd>password</kbd>
847 <code>GQ</code>
849 <code>GQ</code>
854 <code>MV</code>
856 <code>TC</code>
862 <code>ntp-keygen</code>
863 <code>-V</code> <kbd>n</kbd>
864 <code>-p</code> <kbd>password</kbd>,
891 <code>MV</code>
897 <dt><code>-b</code> <code>--imbits</code>= <kbd>modulus</kbd></dt>
906 <dt><code>-c</code> <code>--certificate</code>= <kbd>scheme</kbd></dt>
911 <code>RSA-MD2</code>, <code>RSA-MD5</code>, <code>RSA-MDC2</code>, <code>RSA-SHA</code>, <code>RSA-SHA1</code>, <code>RSA-RIPEMD160</code>, <code>DSA-SHA</code>,
913 <code>DSA-SHA1</code>.
915 <code>RSA</code>
917 <code>RSA</code>
919 <code>DSA</code>
921 <code>DSA</code>
924 <code>RSA-MD5</code>.
926 <code>DSA-SHA</code>
928 <code>DSA-SHA1</code>
931 <dt><code>-C</code> <code>--cipher</code>= <kbd>cipher</kbd></dt>
934 <code>des-ede3-cbc</code>.
936 <code>openssl</code> <code>-h</code>
939 <dt><code>-d</code> <code>--debug-level</code></dt>
943 <dt><code>-D</code> <code>--set-debug-level</code>= <kbd>level</kbd></dt>
948 <dt><code>-e</code> <code>--id-key</code></dt>
950 <code>IFF</code>
952 <code>GQ</code>
960 <dt><code>-G</code> <code>--gq-params</code></dt>
962 <code>GQ</code>
965 <code>-I</code>
967 <code>-V</code>
970 <dt><code>-H</code> <code>--host-key</code></dt>
972 <code>RSA</code>
975 <dt><code>-I</code> <code>--iffkey</code></dt>
977 <code>IFF</code>
980 <code>-G</code>
985 <dt><code>-i</code> <code>--ident</code>= <kbd>group</kbd></dt>
989 <code>IFF</code>, <code>GQ</code>,
991 <code>MV</code>
995 <code>-i</code>
997 <code>-s</code>
1003 <code>crypto</code> <code>ident</code>
1005 <code>server</code> <code>ident</code>
1008 <dt><code>-l</code> <code>--lifetime</code>= <kbd>days</kbd></dt>
1013 <dt><code>-m</code> <code>--modulus</code>= <kbd>bits</kbd></dt>
1020 <dt><code>-M</code> <code>--md5key</code></dt>
1022 <code>MD5</code>
1024 <code>SHA</code>
1027 <code>MD5</code>
1029 <code>SHA</code>
1034 <dt><code>-p</code> <code>--password</code>= <kbd>passwd</kbd></dt>
1039 <code>hostname</code>
1042 <dt><code>-P</code> <code>--pvt-cert</code></dt>
1044 <code>PC</code>
1049 <dt><code>-q</code> <code>--export-passwd</code>= <kbd>passwd</kbd></dt>
1051 <code>IFF</code>, <code>GQ</code> <code>and</code> <code>MV</code>
1057 <code>-p</code>
1059 <code>-q</code>
1062 <code>hostname</code>
1065 <dt><code>-s</code> <code>--subject-key</code>= <code>[host]</code> <code>[@ <kbd>group</kbd>]</code></dt>
1075 <code>-s</code> <code>-@</code> <kbd>group</kbd>
1077 <code>-i</code> <kbd>group</kbd>.
1080 <code>IFF</code>, <code>GQ</code>,
1082 <code>MV</code>
1087 <code>hostname</code>
1090 <dt><code>-S</code> <code>--sign-key</code>= <code>[<code>RSA</code> | <code>DSA</code>]</code></dt>
1094 <code>DSA</code>.
1096 <dt><code>-T</code> <code>--trusted-cert</code></dt>
1100 <dt><code>-V</code> <code>--mv-params</code> <kbd>nkeys</kbd></dt>
1106 <code>-I</code>
1108 <code>-G</code>
1121 <code>ntp-keygen</code>
1139 <code>ntp-keygen</code>
1143 <code>randfile</code>
1145 <code>crypto</code>
1148 <code>ntp-keygen</code>
1162 <code>ntp-keygen</code>
1164 <code>ntpd(1ntpdmdoc)</code>
1198 <code>ntp-keygen</code>
1200 <code>ntpd(1ntpdmdoc)</code>
1251 <code>MD5</code>
1257 <code>SHA</code>
1259 <code>SHA1</code>;
1277 <code>ntpq(1ntpqmdoc)</code>
1279 <code>ntpdc(1ntpdcmdoc)</code>
1286 <code>ntp-keygen</code>
1295 <code>ntp-keygen</code>
1302 <code>ntpq(1ntpqmdoc)</code>
1304 <code>ntpdc(1ntpdcmdoc)</code>
1308 using the <code>agtexi-cmd</code> template and the option descriptions for the <code>ntp-keygen</code> program.
1374 <p>The text printed is the same whether selected with the <code>help</code> option
1375 (<samp>--help</samp>) or the <code>more-help</code> option (<samp>--more-help</samp>). <code>more-help</code> will print
1377 <code>more-help</code> is disabled on platforms without a working
1378 <code>fork(2)</code> function. The <code>PAGER</code> environment variable is
1380 with a status code of 0.
1446 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1463 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1487 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1492 equivalent to "<code>-C des-ede3-cbc</code>". The openssl tool lists ciphers
1493 available in "<code>openssl -h</code>" output.
1506 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1524 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1541 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1557 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1575 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1581 provided. The group name, if specified using <code>-i/--ident</code> or
1582 using <code>-s/--subject-name</code> following an ’<code>@</code>’ character,
1584 issuer names in the form <code>host@group</code> and should match the
1585 ’<code>crypto ident</code>’ or ’<code>server ident</code>’ configuration in the
1586 <code>ntpd</code> configuration file.
1600 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1617 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1643 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1661 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1682 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1703 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1707 following an ’<code>@</code>’ character. The host name is used in the file
1710 in <code>host@group</code> form for the host certificate subject and issuer
1711 fields. Specifying ’<code>-s @group</code>’ is allowed, and results in
1712 leaving the host name unchanged while appending <code>@group</code> to the
1713 subject and issuer fields, as with <code>-i group</code>. The group name, or
1729 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1747 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1765 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1783 <li> must be compiled in by defining <code>AUTOKEY</code> during the compilation.
1797 loading values from configuration ("rc" or "ini") files, and values from environment variables named <code>NTP-KEYGEN</code> and <code>NTP-KEYGEN_<OPTION_NAME></code>. <code><OPTION_NAME></code> must be one of
1799 The <code>NTP-KEYGEN</code> variable will be tokenized and parsed like
1804 <p><code>libopts</code> will search in 2 places for configuration files:
1809 <p>The environment variables <code>HOME</code>, and <code>PWD</code>
1840 <p>yielding an <code>option-name.sub-opt</code> string value of
1844 <p><code>AutoOpts</code> does not track suboptions. You simply note that it is a
1845 hierarchicly valued option. <code>AutoOpts</code> does provide a means for searching
1924 usually called <code>.rnd</code>, which must be available when
1925 starting the <code>ntp-keygen</code> program or <code>ntpd</code> daemon.
1928 <code>RANDFILE</code> environment variable in the user home directory, whether root
1930 If the <code>RANDFILE</code> environment variable is not
1931 present, the library looks for the <code>.rnd</code> file in the user home
1933 Since both the <code>ntp-keygen</code> program and <code>ntpd</code> daemon must run
1934 as root, the logical place to put this file is in <code>/.rnd</code> or
1935 <code>/root/.rnd</code>.
1946 <p>File and link names are in the <code>form ntpkey_key_name.fstamp</code>,
1947 where <code>key</code> is the key or parameter type,
1948 <code>name</code> is the host or group name and
1949 <code>fstamp</code> is the filestamp (NTP seconds) when the file was created).
1964 the file name in the format <code>ntpkey_key_host.fstamp</code>.
1966 Lines beginning with <code>#</code> are ignored.
1973 <p>The format of the symmetric keys file, ordinarily named <code>ntp.keys</code>,
2029 <p>Note that the keys used by the <code>ntpq</code> and <code>ntpdc</code> programs are
2035 <p>The <code>ntp-keygen</code> program generates a MD5 symmetric keys file
2036 <code>ntpkey_MD5key_hostname.filestamp</code>.
2040 The NTP daemon loads the file <code>ntp.keys</code>, so <code>ntp-keygen</code>
2046 authenticate some remote configuration commands used by the <code>ntpq</code> and
2047 <code>ntpdc</code> utilities.