Hi all,
I am still new to all of this.
I had Apache 1.3.22 with mod_perl included and the Authenitcation hook enabled.
Everything was fine.
Then I imstalled my OpenSSL and generated my key, got my server certificate from my
csr etc fine. The certificate has been verified.
I then with mod_ssl-2.8.5-1.3.22
did ./configure \
--with-apache=/web/server/apache/1.3.22-source \
--with-ssl=/web/server/OpenSSL/0.9.6g \
--with-crt=/web/server/OpenSSL/0.9.6g/bin/serverPEM.crt \
--with-key=/web/server/OpenSSL/0.9.6g/bin/server.key \
--prefix=/=/web/server/apache/1.3.22
This went fine. make went fine. Because I used with-crt/with-key I skipped make
certificate (yes serverPEM.crt and server.key are the real certificate and private key)
make install goes fine.
I stop Apache fine.
Once start I get the following error
Syntax error on line 1008 of /web/server/apache/1.3.22/conf/httpd.conf:
Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not included
in the server configuration
/web/server/apache/1.3.22/bin/apachectl start: httpd could not be started
I remove the following lines from my httpd.conf file because I was only using them
once before to ensure my mod_perl hooks were enabled.
Now starting apache I get:
/web/server/apache/1.3.22/bin/apachectl start: httpd could not be started
Here is the messages in the error log for the last attempt at starting:
[Thu Nov 14 16:35:31 2002] [error] mod_ssl: Init: Failed to generate temporary 512
bit RSA private key (OpenSSL library error follows)
[Thu Nov 14 16:35:31 2002] [error] OpenSSL: error:24064064:random number
generator:SSLEAY_RAND_BYTES:PRNG not seeded
[Thu Nov 14 16:35:31 2002] [error] OpenSSL: error:04069003:rsa
routines:RSA_generate_key:BN lib
The machine has a /dev/random .
Greping for Random out of my Apache conf directory I get:
httpd.conf.default:# Pseudo Random Number Generator (PRNG):
httpd.conf.default:SSLRandomSeed startup builtin
httpd.conf.default:SSLRandomSeed connect builtin
httpd.conf.default:#SSLRandomSeed startup file:/dev/random 512
httpd.conf.default:#SSLRandomSeed startup file:/dev/urandom 512
httpd.conf.default:#SSLRandomSeed connect file:/dev/random 512
httpd.conf.default:#SSLRandomSeed connect file:/dev/urandom 512
Do I need to add one of these to my httpd.conf since that is what get used? But which
one?
Thanks.
Jem