RE: mod ssl freezes when booting up

2004-04-21 Thread C G


 If I restart my computer, the screen always freezes at
 'starting up apache'
 and I have to remote log on and kill apache for the machine to boot.
Is the private key encrypted? If it is, it will prompt for a passphrase
at start-up and wait until it gets one. But read on...
Yes the key the is encrypted. When I start apache as root and log on, it 
asks me for a pass phrase. But when apache tries to start at boot-up it just 
hangs, no pass-phrase.

 Looking at the error log I get the messages:
 [Tue Apr 20 13:58:06 2004] [error] mod_ssl: Init: Private key
 not found
This isn't good. What do you have for SSLCertificateKeyFile? Does the
path exist? Is it readable?
Yes is there, and yes it is readable. I presume that apache will start up as 
root. So that shouldn't be the problem.

Someone else suggested that that I make apache boot-up last. I changed 
S90apache to  S99apache. It didn't work.

Another suggestion was to try $PATH and $LD_LIBRARY_PATH. I don't think this 
is the problem as everything is Debian, and I haven't put anything in funny 
positions.

Are there any other suggestions?

Thanks for the help

Colin

_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  [EMAIL PROTECTED]
Automated List Manager[EMAIL PROTECTED]


Re: mod ssl freezes when booting up

2004-04-20 Thread Mike Alberghini
Assuming that the box boots apache and you hand-start it both as root,
check variables like $PATH and $LD_LIBRARY_PATH, as well as the permissions
of the files containing your private key.


On Tue, Apr 20, 2004 at 01:39:59PM +, C G wrote:
 Dear All,
 
 If I restart my computer, the screen always freezes at 'starting up apache' 
 and I have to remote log on and kill apache for the machine to boot.
 
 Looking at the error log I get the messages:
 [Tue Apr 20 13:58:06 2004] [error] mod_ssl: Init: Private key not found 
 (OpenSSL library error follows)
 [Tue Apr 20 13:58:06 2004] [error] OpenSSL: error:0D094068:asn1 encoding 
 routines:d2i_ASN1_SET:bad tag
 [Tue Apr 20 13:58:06 2004] [error] OpenSSL: error:0D0680A8:asn1 encoding 
 routines:ASN1_CHECK_TLEN:wrong tag
 [Tue Apr 20 13:58:06 2004] [error] OpenSSL: error:0D07803A:asn1 encoding 
 routines:ASN1_ITEM_EX_D2I:nested asn1 error
 [Tue Apr 20 13:58:06 2004] [error] OpenSSL: error:0D09A00D:asn1 encoding 
 routines:d2i_PrivateKey:ASN1 lib
 
 However, what I don't understand is that I once logged in I can start 
 apache up with no more errors, i.e.
 apachectl configtest
 apachectl start [Asks for password here]
 there are no more errors in the logs either.
 
 Any ideas?
 
 Thanks
 
 Colin
 
 Versions:
 libapache-mod-ssl 2.8.16-7
 apache 1.3.29
 
 Under Debian testing
 
 _
 Express yourself with cool emoticons - download MSN Messenger today! 
 http://www.msn.co.uk/messenger
 
 __
 Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
 User Support Mailing List  [EMAIL PROTECTED]
 Automated List Manager[EMAIL PROTECTED]

-- 
Michael Alberghini
Software Systems Engineer
Georgia State University
[EMAIL PROTECTED]
__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  [EMAIL PROTECTED]
Automated List Manager[EMAIL PROTECTED]