[ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt

2015-04-04 Thread 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 = 0x (=all)
set info_auth_key to 0001
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
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt

2015-04-07 Thread ast guy
Hi,
 Any help with below issue?

/ag

On Sat, Apr 4, 2015 at 9:06 AM, ast guy  wrote:

> 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 = 0x (=all)
> set info_auth_key to 0001
> 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
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt

2015-04-07 Thread Harlan Stenn
ast guy writes:
> Hi,
>  Any help with below issue?

Are you using chroot options?

Also try 'ls -lL ntpkey_host_siptel'.

H
--
> /ag
> 
> On Sat, Apr 4, 2015 at 9:06 AM, ast guy  wrote:
> 
> > 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 = 0x (=all)
> > set info_auth_key to 0001
> > 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
> questions@lists.ntp.org
> http://lists.ntp.org/listinfo/questions
> 
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt

2015-04-07 Thread 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?

/ag


On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn  wrote:

> ast guy writes:
> > Hi,
> >  Any help with below issue?
>
> Are you using chroot options?
>
> Also try 'ls -lL ntpkey_host_siptel'.
>
> H
> --
> > /ag
> >
> > On Sat, Apr 4, 2015 at 9:06 AM, ast guy  wrote:
> >
> > > 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 = 0x (=all)
> > > set info_auth_key to 0001
> > > 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
> > questions@lists.ntp.org
> > http://lists.ntp.org/listinfo/questions
> >
>
___
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions


Re: [ntp:questions] NTP Leap second: crypto_setup: host key file ntpkey_host_siptel not found or corrupt

2015-04-07 Thread Harlan Stenn
ast guy writes:
> 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

> On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn  wrote:
> 
> > ast guy writes:
> > > Hi,
> > >  Any help with below issue?
> >
> > Are you using chroot options?
> >
> > Also try 'ls -lL ntpkey_host_siptel'.
> >
> > H
> > --
> > > /ag
> > >
> > > On Sat, Apr 4, 2015 at 9:06 AM, ast guy  wrote:
> > >
> > > > 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 = 0x (=all)
> > > > set info_auth_key to 0001
> > > > 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
> > > questions@lists.ntp.org
> > > http://lists.ntp.org/listinfo/questions
> > >
> >
> 
> --089e0103de4ef465ec0513229aad
> Content-Type: text/html; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
> 
> I ran the command that you mentioned and here is=
>  the output.NTP:/etc/ntp/ntp.keys # ls -lL ntpkey_host_siptel-r=
> w-r--r-- 1 root root 617 Apr=C2=A0 4 00:21 ntpkey_host_siptelNTP:/etc/n=
> tp/ntp.keys #Should it be like this?/ag > class=3D"gmail_quote">On Tue, Apr 7, 2015 at 11:26 AM, Harlan Stenn  ir=3D"ltr">stenn@ntp=
> .org> wrote: rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> "">ast guy writes:
> > Hi,
> >=C2=A0 Any help with below issue?
> 
> Are you using chroot options?
> 
> Also try 'ls -lL ntpkey_host_siptel'.
> 
> H
> --
> > /ag
> >
> > On Sat, Apr 4, 2015 at 9:06 AM, ast guy  mail.com">ast...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > >=C2=A0 I have successfully tested Leap second test on one server b=
> ut 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 =3D 0x (=3Dall)
> > > set info_auth_key to 0001
> > > 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/urando=
> m 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.
> > >
> > >
> > >
> > >=C2=A0 =C2=A0 =C2=A0 64 # Authentication stuff
> > >=C2=A0 =C2=A0 =C2=A0 65 #
> > >=C2=A0 =C2=A0 =C2=A0 66 #keys /etc/ntp.keys
> > >=C2=A0 =C2=A0 =C2=A0 67 # path fo