Discussion:
[ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt
ast guy
2015-04-04 07:06:16 UTC
Permalink
Hi,

I have successfully tested Leap second test on one server but when I try
to do the same configuration on another ntp server it reports me that the
host key file is not found or corrupt.

Can some please suggest what configurations I am missing?

The error when I run ntpd in debug mode.

getnetnum: calling getaddrinfo(127.127.1.0,...)
getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)
ntp_syslogmask = 0x0000ffff (=all)
set info_auth_key to 00000001
getnetnum: calling getaddrinfo(127.0.0.1,...)
getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)
crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes
read 2048
addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or
corrupt


the ntp.conf configurations related to crypto module.



64 # Authentication stuff
65 #
66 #keys /etc/ntp.keys
67 # path for keys file
68 trustedkey 1
69 # define trusted keys
70 requestkey 1
71
72
73 keysdir /etc/ntp/ntp.keys
74 #keys /etc/ntp
75
76 crypto randfile /dev/urandom
77 crypto pw password


Listing of ntp.keys folder.

:/etc/ntp/ntp.keys # ll
total 56
-rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt
-rw-r--r-- 1 root root 543 Apr 4 00:21
ntpkey_RSA-MD5cert_siptel.3637066871
-rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel ->
ntpkey_RSA-MD5cert_siptel.3637066871
lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel ->
ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap ->
leap-seconds.3629577600.txt
ast guy
2015-04-07 09:13:14 UTC
Permalink
Hi,
Any help with below issue?

/ag
Post by ast guy
Hi,
I have successfully tested Leap second test on one server but when I try
to do the same configuration on another ntp server it reports me that the
host key file is not found or corrupt.
Can some please suggest what configurations I am missing?
The error when I run ntpd in debug mode.
getnetnum: calling getaddrinfo(127.127.1.0,...)
getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)
ntp_syslogmask = 0x0000ffff (=all)
set info_auth_key to 00000001
getnetnum: calling getaddrinfo(127.0.0.1,...)
getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)
crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes
read 2048
addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or
corrupt
the ntp.conf configurations related to crypto module.
64 # Authentication stuff
65 #
66 #keys /etc/ntp.keys
67 # path for keys file
68 trustedkey 1
69 # define trusted keys
70 requestkey 1
71
72
73 keysdir /etc/ntp/ntp.keys
74 #keys /etc/ntp
75
76 crypto randfile /dev/urandom
77 crypto pw password
Listing of ntp.keys folder.
:/etc/ntp/ntp.keys # ll
total 56
-rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt
-rw-r--r-- 1 root root 543 Apr 4 00:21
ntpkey_RSA-MD5cert_siptel.3637066871
-rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel ->
ntpkey_RSA-MD5cert_siptel.3637066871
lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel ->
ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap ->
leap-seconds.3629577600.txt
Harlan Stenn
2015-04-07 09:26:34 UTC
Permalink
Post by ast guy
Hi,
Any help with below issue?
Are you using chroot options?

Also try 'ls -lL ntpkey_host_siptel'.

H
--
Post by ast guy
/ag
Post by ast guy
Hi,
I have successfully tested Leap second test on one server but when I try
to do the same configuration on another ntp server it reports me that the
host key file is not found or corrupt.
Can some please suggest what configurations I am missing?
The error when I run ntpd in debug mode.
getnetnum: calling getaddrinfo(127.127.1.0,...)
getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)
ntp_syslogmask = 0x0000ffff (=all)
set info_auth_key to 00000001
getnetnum: calling getaddrinfo(127.0.0.1,...)
getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)
crypto_setup: OpenSSL version 90801f random seed file /dev/urandom bytes
read 2048
addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found or
corrupt
the ntp.conf configurations related to crypto module.
64 # Authentication stuff
65 #
66 #keys /etc/ntp.keys
67 # path for keys file
68 trustedkey 1
69 # define trusted keys
70 requestkey 1
71
72
73 keysdir /etc/ntp/ntp.keys
74 #keys /etc/ntp
75
76 crypto randfile /dev/urandom
77 crypto pw password
Listing of ntp.keys folder.
:/etc/ntp/ntp.keys # ll
total 56
-rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt
-rw-r--r-- 1 root root 543 Apr 4 00:21
ntpkey_RSA-MD5cert_siptel.3637066871
-rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel ->
ntpkey_RSA-MD5cert_siptel.3637066871
lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel ->
ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap ->
leap-seconds.3629577600.txt
_______________________________________________
questions mailing list
http://lists.ntp.org/listinfo/questions
ast guy
2015-04-07 13:43:53 UTC
Permalink
I ran the command that you mentioned and here is the output.

NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel
-rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_host_siptel
NTP:/etc/ntp/ntp.keys #

Should it be like this?

/ag
Post by Harlan Stenn
Post by ast guy
Hi,
Any help with below issue?
Are you using chroot options?
Also try 'ls -lL ntpkey_host_siptel'.
H
--
Post by ast guy
/ag
Post by ast guy
Hi,
I have successfully tested Leap second test on one server but when I
try
Post by ast guy
Post by ast guy
to do the same configuration on another ntp server it reports me that
the
Post by ast guy
Post by ast guy
host key file is not found or corrupt.
Can some please suggest what configurations I am missing?
The error when I run ntpd in debug mode.
getnetnum: calling getaddrinfo(127.127.1.0,...)
getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)
ntp_syslogmask = 0x0000ffff (=all)
set info_auth_key to 00000001
getnetnum: calling getaddrinfo(127.0.0.1,...)
getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)
crypto_setup: OpenSSL version 90801f random seed file /dev/urandom
bytes
Post by ast guy
Post by ast guy
read 2048
addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found
or
Post by ast guy
Post by ast guy
corrupt
the ntp.conf configurations related to crypto module.
64 # Authentication stuff
65 #
66 #keys /etc/ntp.keys
67 # path for keys file
68 trustedkey 1
69 # define trusted keys
70 requestkey 1
71
72
73 keysdir /etc/ntp/ntp.keys
74 #keys /etc/ntp
75
76 crypto randfile /dev/urandom
77 crypto pw password
Listing of ntp.keys folder.
:/etc/ntp/ntp.keys # ll
total 56
-rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt
-rw-r--r-- 1 root root 543 Apr 4 00:21
ntpkey_RSA-MD5cert_siptel.3637066871
-rw-r--r-- 1 root root 617 Apr 4 00:21
ntpkey_RSAkey_siptel.3637066871
Post by ast guy
Post by ast guy
lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel ->
ntpkey_RSA-MD5cert_siptel.3637066871
lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel ->
ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap ->
leap-seconds.3629577600.txt
_______________________________________________
questions mailing list
http://lists.ntp.org/listinfo/questions
Harlan Stenn
2015-04-07 22:51:24 UTC
Permalink
Post by ast guy
I ran the command that you mentioned and here is the output.
NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel
-rw-r--r-- 1 root root 617 Apr 4 00:21 ntpkey_host_siptel
NTP:/etc/ntp/ntp.keys #
Should it be like this?
Yes, so the other two most likelye possibilities are that you are
running the chroot option and this file is not in the chroot tree, or
that the leapseconds file is corrupt.

H
Post by ast guy
Post by Harlan Stenn
Post by ast guy
Hi,
Any help with below issue?
Are you using chroot options?
Also try 'ls -lL ntpkey_host_siptel'.
H
--
Post by ast guy
/ag
Post by ast guy
Hi,
I have successfully tested Leap second test on one server but when I
try
Post by ast guy
Post by ast guy
to do the same configuration on another ntp server it reports me that
the
Post by ast guy
Post by ast guy
host key file is not found or corrupt.
Can some please suggest what configurations I am missing?
The error when I run ntpd in debug mode.
getnetnum: calling getaddrinfo(127.127.1.0,...)
getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)
ntp_syslogmask = 0x0000ffff (=all)
set info_auth_key to 00000001
getnetnum: calling getaddrinfo(127.0.0.1,...)
getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)
crypto_setup: OpenSSL version 90801f random seed file /dev/urandom
bytes
Post by ast guy
Post by ast guy
read 2048
addto_syslog: crypto_setup: host key file ntpkey_host_siptel not found
or
Post by ast guy
Post by ast guy
corrupt
the ntp.conf configurations related to crypto module.
64 # Authentication stuff
65 #
66 #keys /etc/ntp.keys
67 # path for keys file
68 trustedkey 1
69 # define trusted keys
70 requestkey 1
71
72
73 keysdir /etc/ntp/ntp.keys
74 #keys /etc/ntp
75
76 crypto randfile /dev/urandom
77 crypto pw password
Listing of ntp.keys folder.
:/etc/ntp/ntp.keys # ll
total 56
-rwxrwxrwx 1 root root 8768 Apr 1 05:44 leap-seconds.3629577600.txt
-rw-r--r-- 1 root root 543 Apr 4 00:21
ntpkey_RSA-MD5cert_siptel.3637066871
-rw-r--r-- 1 root root 617 Apr 4 00:21
ntpkey_RSAkey_siptel.3637066871
Post by ast guy
Post by ast guy
lrwxrwxrwx 1 root root 36 Apr 4 00:21 ntpkey_cert_siptel ->
ntpkey_RSA-MD5cert_siptel.3637066871
lrwxrwxrwx 1 root root 31 Apr 4 00:21 ntpkey_host_siptel ->
ntpkey_RSAkey_siptel.3637066871
lrwxrwxrwx 1 root root 27 Apr 1 05:52 ntpkey_leap ->
leap-seconds.3629577600.txt
_______________________________________________
questions mailing list
http://lists.ntp.org/listinfo/questions
--089e0103de4ef465ec0513229aad
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div>I ran the command that you mentioned and here is=
the output.<br><br>NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel<br>-r=
w-r--r-- 1 root root 617 Apr=C2=A0 4 00:21 ntpkey_host_siptel<br>NTP:/etc/n=
tp/ntp.keys #<br><br></div>Should it be like this?<br><br></div>/ag<br><div=
Post by Harlan Stenn
<div><div><br></div></div></div></div><div class=3D"gmail_extra"><br><div =
class=3D"gmail_quote">On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn <span d=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D=
"">ast guy writes:<br>
&gt; Hi,<br>
&gt;=C2=A0 Any help with below issue?<br>
<br>
</span>Are you using chroot options?<br>
<br>
Also try &#39;ls -lL ntpkey_host_siptel&#39;.<br>
<br>
H<br>
&gt;<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 I have successfully tested Leap second test on one server b=
ut when I try<br>
&gt; &gt; to do the same configuration on another ntp server it reports me =
that the<br>
&gt; &gt; host key file is not found or corrupt.<br>
&gt; &gt;<br>
&gt; &gt; Can some please suggest what configurations I am missing?<br>
&gt; &gt;<br>
&gt; &gt; The error when I run ntpd in debug mode.<br>
&gt; &gt;<br>
&gt; &gt; getnetnum: calling getaddrinfo(127.127.1.0,...)<br>
&gt; &gt; getnetnum given 127.127.1.0, got 127.127.1.0 (t_REF/1)<br>
&gt; &gt; ntp_syslogmask =3D 0x0000ffff (=3Dall)<br>
&gt; &gt; set info_auth_key to 00000001<br>
&gt; &gt; getnetnum: calling getaddrinfo(127.0.0.1,...)<br>
&gt; &gt; getnetnum given 127.0.0.1, got 127.0.0.1 (t_UNK/0)<br>
&gt; &gt; crypto_setup: OpenSSL version 90801f random seed file /dev/urando=
m bytes<br>
&gt; &gt; read 2048<br>
&gt; &gt; addto_syslog: crypto_setup: host key file ntpkey_host_siptel not =
found or<br>
&gt; &gt; corrupt<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; the ntp.conf configurations related to crypto module.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 64 # Authentication stuff<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 65 #<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 66 #keys /etc/ntp.keys<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 67 # path for keys file<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 68 trustedkey 1<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 69 # define trusted keys<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 70 requestkey 1<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 71<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 72<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 73 keysdir /etc/ntp/ntp.keys<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 74 #keys /etc/ntp<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 75<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 76 crypto randfile /dev/urandom<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 77 crypto pw password<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Listing of ntp.keys folder.<br>
&gt; &gt;<br>
&gt; &gt; :/etc/ntp/ntp.keys # ll<br>
&gt; &gt; total 56<br>
&gt; &gt; -rwxrwxrwx 1 root root 8768 Apr=C2=A0 1 05:44 leap-seconds.362957=
7600.txt<br>
&gt; &gt; -rw-r--r-- 1 root root=C2=A0 543 Apr=C2=A0 4 00:21<br>
&gt; &gt; ntpkey_RSA-MD5cert_siptel.3637066871<br>
&gt; &gt; -rw-r--r-- 1 root root=C2=A0 617 Apr=C2=A0 4 00:21 ntpkey_RSAkey_=
siptel.3637066871<br>
&gt; &gt; lrwxrwxrwx 1 root root=C2=A0 =C2=A036 Apr=C2=A0 4 00:21 ntpkey_ce=
&gt; &gt; ntpkey_RSA-MD5cert_siptel.3637066871<br>
&gt; &gt; lrwxrwxrwx 1 root root=C2=A0 =C2=A031 Apr=C2=A0 4 00:21 ntpkey_ho=
&gt; &gt; ntpkey_RSAkey_siptel.3637066871<br>
&gt; &gt; lrwxrwxrwx 1 root root=C2=A0 =C2=A027 Apr=C2=A0 1 05:52 ntpkey_le=
&gt; &gt; leap-seconds.3629577600.txt<br>
&gt; &gt;<br>
&gt; &gt;<br> </div></div>&gt; _______________________________________________<br>
&gt; questions mailing list<br>
<br>
&gt; <a href=3D"http://lists.ntp.org/listinfo/questions" target=3D"_blank">=
http://lists.ntp.org/listinfo/questions</a><br>
&gt;<br>
</blockquote></div><br></div>
--089e0103de4ef465ec0513229aad--
Loading...