[openssl-users] DH_generate_key Hangs

Jeffrey Walton noloader at gmail.com
Thu Oct 5 19:33:16 UTC 2017


On Thu, Oct 5, 2017 at 2:55 PM, Jason Qian via openssl-users
<openssl-users at openssl.org> wrote:
> Thanks Michael,
>
>       I saw a lot of discussion for this issue on,
>
>        https://mta.openssl.org/pipermail/openssl-dev/2015-July/002210.html
>
>       Not sure if openSSL has a workaround or a patch ?
>
>
> It hangs on :
>
> libeay32.dll!RAND_poll() Line 523
>
> if (heap_first(&hentry,
>       hlist.th32ProcessID,
>                       hlist.th32HeapID))

You should avoid calls to RAND_poll altogether on Windows. Do so by
explicitly seeding the random number generator yourself.

Also see https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues
on the OpenSSL wiki.

Jeff


More information about the openssl-users mailing list