用OpenSSL构buildNTP

我正在尝试使用OpenSSL支持构build最新版本的NTP(发布于2015/06/29的4.2.8p3)。

我可以肯定地build立NTP,但是当我尝试使用ntp-keygen来创build一个新的证书时,它告诉我参数是未知的。

我使用这个命令行来创build一个证书:

ntp-keygen -p privatePassword -T -I -i GR1 

这给了我:

 guillaume@quentin-HP-xw6600-Workstation:~/certifs$ ntp-keygen -p privatePassword -T -I -i GR1 /usr/sbin/ntp-keygen: illegal option -- p ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p3 Usage: ntp-keygen [ -<flag> [<val>] | --<name>[{=| }<val>] ]... Try 'ntp-keygen --help' for more information. 

我试图build立ntp与不同的选项,但我总是有同样的问题。

有人有同样的问题吗?

我相信这是NTP版本的一个问题,但是我不确定…(我尝试过使用dev版本,但是得到了相同的结果)。 或者,也许这个问题是由于我的configuration选项?

我的configuration选项:

 ./configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/share \ --sysconfdir=/etc/ntp \ --disable-linuxcaps \ --enable-parse-clocks \ --disable-ipv6 \ --enable-debugging \ --with-crypto \ --with-openssl-libdir=/opt/opt/openssl/lib \ --with-openssl-incdir=/opt/include/openssl \ --enable-autokey \ 

编辑:ntp-keygen –help给我:

 guillaume@quentin-HP-xw6600-Workstation:~/certifs$ ntp-keygen --help ntp-keygen (ntp) - Create a NTP host key - Ver. 4.2.8p3 Usage: ntp-keygen [ -<flag> [<val>] | --<name>[{=| }<val>] ]... Flg Arg Option-Name Description -d no debug-level Increase debug verbosity level - may appear multiple times -D Num set-debug-level Set the debug verbosity level - may appear multiple times -M no md5key generate MD5 keys opt version output version information and exit -? no help display extended usage information and exit -! no more-help extended usage information passed thru pager -> opt save-opts save the option state to a config file -< Str load-opts load options from a config file - disabled as '--no-load-opts' - may appear multiple times Options are specified by doubled hyphens and their name or by a single hyphen and the flag character. The following option preset mechanisms are supported: - reading file $HOME/.ntprc - reading file ./.ntprc - examining environment variables named NTP_KEYGEN_* Please send bug reports to: <http://bugs.ntp.org, [email protected]>