Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2 and Digital Certs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mgladding4423
n00b
n00b


Joined: 12 May 2005
Posts: 15

PostPosted: Tue Oct 11, 2005 9:59 pm    Post subject: Apache 2 and Digital Certs Reply with quote

I'm having trouble getting ssl and digital certificates to work under Apache 2 with mod_ssl.

So far I have created a self signed cert, with my own certificate authority (hence self signed...) and I think I have set up everything correctly. I added this to my httpd.conf:

Code:
SSLVerifyClient none
SSLCACertificateFile etc/ssl/ca.crt
<Location /var/www/localhost/testingssl>
SSLVerifyClient require
SSLVerifyDepth 1
</Location>


and set up my vhost for this location:
Code:
NameVirtualHost 192.168.1.32:443

<VirtualHost 192.168.1.32:443>
  ServerName testssl.mydomain.net
  DocumentRoot /var/www/localhost/testingssl
</VirtualHost>


I restarted apache after this and it starts just fine.
But when I go to the page via firefox I get:
Code:
The connection to testingssl.mydomain.net has terminated unexpectedly. Some data loss may have occured.


And when I access it via IE it tells me I am entering a secure site and then I get:
Code:
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.


What am I missing here? Did I screw up a step? Anyone know?
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue Oct 11, 2005 10:05 pm    Post subject: Reply with quote

add
Code:
-D SSL -D SSL_DEFAULT_VHOST

to your APACHE2_OPTS in /etc/conf.d/apache2

all your vhost and cert information should go in

/etc/apache2/modules.d/40_mod_ssl.conf and /etc/apache2/modules.d/41_mod_ssl.default-vhost.conf
Back to top
View user's profile Send private message
mgladding4423
n00b
n00b


Joined: 12 May 2005
Posts: 15

PostPosted: Tue Oct 11, 2005 10:22 pm    Post subject: Reply with quote

I did as you suggested and it still comes up with the same problems. Any other ideas?
Back to top
View user's profile Send private message
mgladding4423
n00b
n00b


Joined: 12 May 2005
Posts: 15

PostPosted: Wed Oct 12, 2005 3:07 pm    Post subject: Reply with quote

anyone? I have still yet to resolve this and could really use some help... would it help if I posted all my config files?
Back to top
View user's profile Send private message
velociphile
n00b
n00b


Joined: 29 Oct 2003
Posts: 43
Location: Sydney, Australia

PostPosted: Sat Nov 19, 2005 4:18 pm    Post subject: Reply with quote

Is this fixed? I see it's been over a month, so for your sake I hope it is.

If not: simplistic stuff, but are you sure Apache is listening on 443 (Listen 443 set in 40_mod_ssl.conf), that you can access port 443 (it's being forwarded by your router or whatever) and that you're accessing the page through 443 not 80?
You can check that 443 is open with nmap:
Code:

$ nmap target.host.ip.address -p 443


Tom
_________________
"1830: Press Return."

Vista will solve all your problems. People keep telling me so it must be true.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum