[ntp:questions] Unable to use SHA1 with ntp4.2.8p9

sneha b snehabadardinni at gmail.com
Mon Jan 23 10:57:57 UTC 2017


This is on windows 7.

On Mon, Jan 23, 2017 at 4:26 PM, sneha b <snehabadardinni at gmail.com> wrote:

> Hi,
>
> I am using ntp4.2.8p9 with openssl 1.0.2j, with this md5 is working fine.
> But when I use SHA1 I get below error while executine ntpd -q:
>
> "Invalid type for key"
>
> I downloaded the source code from ntp.org with patch and built the exe
> using vxproj.
> Do I need to enable some filags as to use SHA1.
>
> I just set the openssl path in environment variables for include and
> library.
>
> Any inputs or fix in this regard will be of great use, as I am struggling
> since long.
>
> Below is the content of ntp.keys file:
>
> # ntpkey_SHAkey_HCA-R9YL4RC.3627968244
> # Fri Dec 19 14:27:24 2014
>
>  1 MD5 s%hh5/yPldNiCAY at W&t$  # MD5 key
>  2 MD5 Bhq]<m\Q\pyh;7Gfv5R4  # MD5 key
>  3 MD5 q6+*<?{+d25Z(9Ru]8U.  # MD5 key
>  4 MD5 6S/hBc0tFO37iao at 9IWy  # MD5 key
>  5 MD5 tcz/N)BeGZRVth"p0Y;a  # MD5 key
>  6 MD5 Pl_\mk>@PXUV7Z(-xHHl  # MD5 key
>  7 MD5 ytRQhn%1U<}IzW^P0EJ-  # MD5 key
>  8 MD5 W~/3[]6g"ylC9vJTHJ}V  # MD5 key
>  9 MD5 39Udu|jeZ*tcS"o+kKwu  # MD5 key
> 10 MD5 -AJq19S~9Q?GPgbIHoyx  # MD5 key
> 11 SHA1 2fee5e55aae45c9dea60fd2776d2c0386b4f51f6  # SHA1 key
> 12 SHA1 56eefc7ce3d0ff1a71405ea9db12c7a590eee212  # SHA1 key
> 13 SHA1 f68a2d3bd8639e12e6d723ea992481082c1c44cf  # SHA1 key
> 14 SHA1 cb907cd6cb7bb7fd8195b234e985af70143bb5ca  # SHA1 key
> 15 SHA1 4a243f4e0216bcd9e70ffaba135a15a9d2c2d73c  # SHA1 key
> 16 SHA1 71619f3870ee35bea35d89597ee9c5121be38fa6  # SHA1 key
> 17 SHA1 cb1cb1a6135519b8e50010575abe2bfe9adbb733  # SHA1 key
> 18 SHA1 2bf365d8535197455b06ef8fc6a20a1b6aa5c012  # SHA1 key
> 19 SHA1 7012d6aab691f53a415330d6b8ed648c8c0e867f  # SHA1 key
>
> MD5 is working only problem is with SHA1.
>
> Thanks,
> Sneha
>


More information about the questions mailing list