Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache + mod_ssl - no response from https://localhost
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Fri May 02, 2003 4:41 pm    Post subject: Reply with quote

Ok, I'm getting closer. I've read alot of './configure --help' on all the sources involved. Thank you very much, Hideki. Your links have actually helped me understand a great deal!:D

Well as of now, Internet Explorer will connect via https, but Phoenix doesn't like it. Phoenix reports:Error establishing an encypted connection to 192.168.x.x. Error Code: -8054

How should I generate the server.crt and server.key files? What I have done so far is grab them from previous apache merges. Is this incorrect? Should I generate new ones? If so, how do I do that?
_________________
only the paranoid survive
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Fri May 02, 2003 9:05 pm    Post subject: Reply with quote

I am currently getting this in my logs/error_log:
[Fri May 2 16:44:24 2003] [error] [client 127.0.0.1] Invalid method in request \x80p\x01\x03\x01
[Fri May 2 16:44:24 2003] [error] [client 127.0.0.1] Invalid method in request \x80p\x01\x03


I am using apache 1.3.27 with mod_ssl 2.8.14. The problem exists with or without php-4.3.1. No mysql. I think I may be missing a crucial library or something. I've done an ldd /apache/bin/httpd and everything appears to be statically linked correctly. I get no errors to the console, but only that one in the log. Does ANYONE have any ideas on what's going on? Why is setting up Apache in a chroot such a task? It's mentioned so casually everywhere. I don't mind working for something, hence my success so far, but I have no clue where to go with this.
_________________
only the paranoid survive
Back to top
View user's profile Send private message
Hideki
n00b
n00b


Joined: 09 Mar 2003
Posts: 74

PostPosted: Fri May 02, 2003 10:55 pm    Post subject: Reply with quote

I do not run 1.3.27, so can't help well, but as for creating certificates, look in the www.apache-ssl.org and scroll down a bit and you'll find a way to do it using openssl command.

Also openssl command can make a connection to https port like what telnet can do to http port, maybe you can use that and see if it makes a good connection.
(Eg: openssl s_client -connect localhost:443)
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Tue May 06, 2003 2:10 pm    Post subject: Reply with quote

whoot!! Hideki, thank you!! I can be very stubborn at times, and I (at first) thought what you were suggesting didn't have anything to do with what I'm doing, but after taking a long weekend, and coming back to work today with a fresh head, I just still couldn't get it working... so I gave up and decided to make new certificates like you suggested, and after finding out that 'Listen 443' was listed twice (between httpd.conf and mod_ssl.conf), doing these two things (along with inserting the lines rac suggested) fixed it! I am now running a Squirrelmail Webmail server in a chroot with SSL support!! yes!! Life is good!!
_________________
only the paranoid survive
Back to top
View user's profile Send private message
daelight
n00b
n00b


Joined: 07 Feb 2003
Posts: 24

PostPosted: Wed Jan 07, 2004 1:46 am    Post subject: Here's an alternate solution Reply with quote

Ok... I went through a lot trouble that could've been avoided.

Code:
/usr/sbin/apachectl


is missing the following code to start ssl

Code:
    startssl|sslstart|start-SSL)
   if [ $RUNNING -eq 1 ]; then
       echo "$0 $ARG: httpd (pid $PID) already running"
       continue
   fi
   if $HTTPD -DSSL; then
       echo "$0 $ARG: httpd started"
   else
       echo "$0 $ARG: httpd could not be started"
       ERROR=3
   fi
   ;;


And then, edit
Code:
/etc/apache/conf/vhosts/ssl.default-vhost.conf


to change the root directory to whatever u speficied.

After that, you should be able to run apachectl startssl with no problems
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
Goto page Previous  1, 2
Page 2 of 2

 
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