> > [Thu May 25 19:34:31 2000] [error] mod_ssl: Init: Failed to generate 
temporary 5
> > 12 bit RSA private key

Sorry, I missed the earlier discussion on this (so I may have got
the wrong end of the stick), but I got this too when trying to build
apache 1.3.12 with perl-5.6.0 and mod_ssl 2.6.4, and I found a solution.

The problem was that mod_perl's test scripts invoke apache
with a stub config section designed to turn SSL off:

<IfModule apache_ssl.c>
SSLDisable
....

It so happens that mod_ssl tries to generate the tmp RSA key even
though it's been disabled with SSLDisable. Because there are
no SSL directives in the test conf file that define sources for randomness,
the key generation fails (and apache fails to start, and so the mod_perl
test fails).

My workaround was to add the following lines to the <IfModule apache_ssl.c>
session:

        SSLRandomSeed startup builtin
        SSLRandomSeed connect builtin
        SSLLog      logs/ssl_engine_log
        SSLLogLevel info

(I suspect only the 1st of these lines is required, but this is what I
actually added that worked).


* Dave Mitchell, Operations Manager,
* Fretwell-Downing Facilities Ltd, UK.  [EMAIL PROTECTED]
* Tel: +44 114 281 6113.                The usual disclaimers....
*
* Standards (n). Battle insignia or tribal totems

Reply via email to