logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: SSL with Apache - unable to connect through a browser
Author
davidsc



Joined: 02 Aug 2007
Posts: 4

PostPosted: Thu 02 Aug '07 15:45    Post subject: SSL with Apache - unable to connect through a browser Reply with quote

This is about setting up Apache + SSL on Windows XP - yes again!

My Apache version is 2.0.58 and I have taken mod_ssl.so from Apache_2.0.59-Openssl_0.9.8d-Win32.zip
[Is that OK or should I strictly stick to the 2.0.59 distribution that has SSL already in it?]

Have turned on log_level debug in http.conf and get the following (taken out repeated messages about worker threads starting):

[Mon Jul 30 15:33:20 2007] [info] Init: Initializing OpenSSL library
[Mon Jul 30 15:33:20 2007] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Jul 30 15:33:20 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Jul 30 15:33:21 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Jul 30 15:33:21 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jul 30 15:33:21 2007] [info] Init: Initializing (virtual) servers for SSL
[Mon Jul 30 15:33:21 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.59, Library: OpenSSL/0.9.8a
[Mon Jul 30 15:33:21 2007] [info] Init: Initializing OpenSSL library
[Mon Jul 30 15:33:21 2007] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Jul 30 15:33:21 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Jul 30 15:33:22 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Jul 30 15:33:22 2007] [info] Init: Initializing (virtual) servers for SSL
[Mon Jul 30 15:33:22 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.59, Library: OpenSSL/0.9.8a
[Mon Jul 30 15:33:22 2007] [notice] Apache/2.0.58 (Win32) mod_ssl/2.0.59 OpenSSL/0.9.8a PHP/5.1.4 configured -- resuming normal operations
[Mon Jul 30 15:33:22 2007] [notice] Server built: Apr 29 2006 17:47:10
[Mon Jul 30 15:33:22 2007] [notice] Parent: Created child process 5876
[Mon Jul 30 15:33:22 2007] [debug] mpm_winnt.c(480): Parent: Sent the scoreboard to the child
[Mon Jul 30 15:33:22 2007] [info] Init: Initializing OpenSSL library
[Mon Jul 30 15:33:22 2007] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Jul 30 15:33:23 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Jul 30 15:33:23 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Jul 30 15:33:23 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jul 30 15:33:23 2007] [info] Init: Initializing (virtual) servers for SSL
[Mon Jul 30 15:33:23 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.59, Library: OpenSSL/0.9.8a
[Mon Jul 30 15:33:23 2007] [info] Init: Initializing OpenSSL library
[Mon Jul 30 15:33:23 2007] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Jul 30 15:33:23 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Jul 30 15:33:24 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Jul 30 15:33:24 2007] [info] Init: Initializing (virtual) servers for SSL
[Mon Jul 30 15:33:24 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.59, Library: OpenSSL/0.9.8a
[Mon Jul 30 15:33:24 2007] [notice] Child 5876: Child process is running
[Mon Jul 30 15:33:24 2007] [info] Parent: Duplicating socket 184 and sending it to child process 5876
[Mon Jul 30 15:33:24 2007] [debug] mpm_winnt.c(598): Parent: Sent 1 listeners to child 5876
[Mon Jul 30 15:33:24 2007] [debug] mpm_winnt.c(401): Child 5876: Retrieved our scoreboard from the parent.
[Mon Jul 30 15:33:24 2007] [debug] mpm_winnt.c(557): Child 5876: retrieved 1 listeners from parent
[Mon Jul 30 15:33:24 2007] [notice] Child 5876: Acquired the start mutex.
[Mon Jul 30 15:33:24 2007] [notice] Child 5876: Starting 250 worker threads.

http://localhost:8080 works fine but https://localhost does not, returning a browser error

“Unable to connect
Firefox can't establish a connection to the server at localhost.”

When I run OpenSSL test I get
F:\OpenSSL>openssl s_client -connect localhost:443
Loading 'screen' into random state - done
connect: Bad file descriptor
connect:errno=10061

Some guidance would be really great ....

David
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 04 Aug '07 10:34    Post subject: Reply with quote

how did you setup your ssl host?
Back to top
davidsc



Joined: 02 Aug 2007
Posts: 4

PostPosted: Mon 06 Aug '07 4:44    Post subject: Used the Apache 2.0.50 package Reply with quote

Very Happy
Well I went through the process once again of setting up Apache with SSL. This time I installed Apache and SSL together using Apache_2.0.59-Openssl_0.9.8d-Win32.zip and it worked!

Second time lucky it seems - turns out to be safer bet to utilise this package as it has been proven rather than to do a cut and paste exercise.
Back to top


Reply to topic   Topic: SSL with Apache - unable to connect through a browser View previous topic :: View next topic
Post new topic   Forum Index -> Apache