Operating System - HP-UX
1748169 Members
4065 Online
108758 Solutions
New Discussion юеВ

SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

 
msbinu
Advisor

SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Hi ,
when I try to create a private key using the command "openssl genrsa -out privkey.pem 2048 "
i m getting th follwoing error andom number generatorSLEAY_RAND_BYTESRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.htm
any idea wht this is ?
9 REPLIES 9
Peter Godron
Honored Contributor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Hi,
I think the correct url for this is :
http://www.openssl.org/support/faq.html#USER1
msbinu
Advisor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

hi Peter

The URL is correct , but i didnt understand how to remove this error

Regards
Binu
Peter Godron
Honored Contributor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Hi,
reading the FAQ:
1. ll /dev/random
2. ll /dev/urandom
3. echo $RANDFILE
4. ll ~/.rnd
5. ll /opt/dev/ssl/.rand
If all of these a blank you do not have a method of creating a random key.

Create a dummy file and assign the environment variable RANDFILE to it, then try again.
Steven E. Protter
Exalted Contributor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Shalom,

This could be a sign of a bad NIC card.

It could be you have 11i v1 or above and would benefit from installing strong random number generator from http://software.hp.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
msbinu
Advisor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Thanx Peter ,Steven

I tried creating a dummy file and pointing the RANDFILE varible to it .
But again I m getting same error .
Also I dont have root permission to install s/w from HP site

Binu
Arunvijai_4
Honored Contributor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Hello,

Download and install OpenSSL for HP-UX from HP, it includes Psudo random number generator(PRNGD)

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=OPENSSL11I

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
msbinu
Advisor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Thanks .. Is there any thing like that for hpux 10.20
Arunvijai_4
Honored Contributor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Nope, it is only for 11.11 and upwards. You may need to compile your own.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
msbinu
Advisor

Re: SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:

Thanks Arun ,
I have downloded the Downloaded and installed OpenSSL for HP-UX from HP, and it is working fine now


Binu