Skip to main content
Aug 8, 2017 3:49 PM UTC

OPENSSL error 24064064

307738856:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seed
ed:./md_rand.c:527:You need to read the OpenSSL FAQ, http://www.openssl.org/supp
ort/faq.html

How to resolve this error ?

    16 replies

    Tatiana Balaburkina
    Rocketeer
    Aug 9, 2017 1:05 AM UTC

    307738856:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seed
    ed:./md_rand.c:527:You need to read the OpenSSL FAQ, http://www.openssl.org/supp
    ort/faq.html

    How to resolve this error ?

    Hi,

    Which build do you use? Could you explain when this error occurs in your case?

    Aug 9, 2017 1:11 AM UTC

    307738856:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seed
    ed:./md_rand.c:527:You need to read the OpenSSL FAQ, http://www.openssl.org/supp
    ort/faq.html

    How to resolve this error ?

    Hello,

    Here is the output from VERSION:

    DANI:/u/dani: >openssl version
    OpenSSL 1.0.2k 26 Jan 2017

    /share/doc/openssl/1.0.2k:

    Tool: openssl
    Version: 1.0.2k
    Build Number: 004

    The error is issued when I attempt to encrypt a file:

    DANI:/u/dani: >openssl enc -aes-256-cfb -salt -pass pass:test -in /u/smpe/GIMZIP/package2.tar -out /u/smpe/GIMZIP/package2.tar.aes

    or:

    DANI:/u/dani: >openssl enc -des3 -salt -pass pass:test -in /u/smpe/GIMZIP/package2.tar -out /u/smpe/GIMZIP/package2.tar.des3

    Tatiana Balaburkina
    Rocketeer
    Aug 10, 2017 9:18 AM UTC

    307738856:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seed
    ed:./md_rand.c:527:You need to read the OpenSSL FAQ, http://www.openssl.org/supp
    ort/faq.html

    How to resolve this error ?

    Hi,

    Thanks for report. We will work on this problem.

    *** Rocket internal tracking reference: USSP-843 ***

    Aug 10, 2017 9:59 AM UTC

    Hi,

    Thanks for report. We will work on this problem.

    *** Rocket internal tracking reference: USSP-843 ***

    Ok, so currently there is no way to encrypt a file using this version of OPENSSL on z/OS ?

    Aug 10, 2017 2:52 PM UTC

    307738856:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seed
    ed:./md_rand.c:527:You need to read the OpenSSL FAQ, http://www.openssl.org/supp
    ort/faq.html

    How to resolve this error ?

    Note, this theory has not been tested yet on our end using openssl, however, we recently fixed a bug in our python port which occurred only when the default value for the random number generator seed was something other than the default. I suppose there is some chance this may be of help to you given the error message.

    Tatiana Balaburkina
    Rocketeer
    Aug 11, 2017 4:36 AM UTC

    Ok, so currently there is no way to encrypt a file using this version of OPENSSL on z/OS ?

    We are not able to reproduce this problem on our system. I use this keys without errors on our machines. So we need time to investigate this issue.
    Which z/OS version do you use? Do you use bash (version) or sh?

    Aug 11, 2017 5:03 AM UTC

    We are not able to reproduce this problem on our system. I use this keys without errors on our machines. So we need time to investigate this issue.
    Which z/OS version do you use? Do you use bash (version) or sh?

    Z/OS 1.10
    I do this from OMVS

    Aug 14, 2017 12:06 PM UTC

    Z/OS 1.10
    I do this from OMVS

    I think it’s likely that openSSL is using /dev/random to seed the PRNG, so it might be that:

    – Jerry

    Aug 14, 2017 12:31 PM UTC

    I think it’s likely that openSSL is using /dev/random to seed the PRNG, so it might be that:

    – Jerry

    Is there as way to force OPENSSL not use /dev/random to seed the PRNG ?

    Aug 14, 2017 12:42 PM UTC

    Is there as way to force OPENSSL not use /dev/random to seed the PRNG ?

    Were you paying support, we might be able to help. However we need to prioritize our time on customers paying maintenance.