Title: Failed to generate temporary 512 bit RSA private key on Solaris 2.7....

Hello everybody,

I am running the following:
Sun Solaris 2.7
Apache 1.3.14
modssl 2.7-1.3.14
open-ssl.0.9.6

I got the following message when I tried to start APACHE...

./apachectl start: httpd could not be started
and error_log shows this:
mod_ssl: Init: failed to generate temporary 512 bit RSA private key

I went through modssl mailing lists, and based on some suggestions, I went to http://www.cosy.sbg.ac.at/~andi/ and downloaded ANDIrand-0.6-5.7-sparc-2.pkg. I am asssuming Solaris 7 is same as Solaris 2.7.

I did pkgadd -d ANDIrand-0.6-5.7-sparc-2.pkg

At the end of package installation it complained that:
Driver (random) is installed.
Initializing random number generator...
driver not loaded!

And this my guess says that random generator is not loaded or installed properly. Since I am still unable to generate certificate using openssl command:

# ./openssl genrsa -des3 -out server.key 1024

warning, not much extra random data, consider using the -rand option
Generating RSA private key, 1024 bit long modulus
3169:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md
_rand.c:474:You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html

Any help in this regard would be appreciated....

Thanks,
Rajiv

Reply via email to