LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-30-2003, 06:52 PM   #1
ohe
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
Unhappy Unable to connect to SSL with https : //


I am trying to setup my web server (Apache) for a secure site.

I have established the SSL setting in virtual server.
I have created my certs.
I can start httpd at this state.
I can also start https: // localhost.
but I can't log into https: // .... from another machine (through the internet).

When I add the port 443 as a listening port in Apache server settings, I can't start httpd anymore. I get the following error:

Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down

That is when it is set to listen to all address at port 443. When I put my own IP, it does the same.

I could not figure out how to open port 443 in the firewall (it is not showing as open) so I turned off the firewall. I still could not start htppd.

What could be the problem?

I am using the latest release of Redhat (9)
 
Old 08-31-2003, 06:08 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
The problem is definately not firewall related. Everything your firewall does is restricting access to that port which doesn't affect the port binding.

The problem with "Address already in use" is that a program is already using that port. To check which program it is use netstat -A inet -lnp.
 
Old 09-01-2003, 12:00 PM   #3
ohe
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I ran netstat -A inet -lnp under two conditions:

1. Without port 443 added as a listening port but with SSL checked under virtual

Response showed that port 443 was taken by httpd along with port 80.

2. With port 443 added as a listening port and SSL checked

Response showed that both port 80 and 443 were open but this is only because httpd could not start because it registered that port 443 was already in use during startup.

Conclusion
With SSL checked, it automatically opens 443 for listening and the addition of adding a port for listening is not required.

If this is the case, I am back to why I can't I get through to the server when both ports are open for listening? The only thing I can think of is that the firewall is blocking port 443. Any ideas?
 
Old 09-01-2003, 12:56 PM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Check with iptables -L -v -n
 
Old 09-02-2003, 12:12 AM   #5
ohe
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
This printout was not as understandable to me as the previous one. Here is what I can make out:

The following ports were accepted:
80
21
22
25
23

The following were rejected:
1023
2049
6000
7100


I could not see any reference to port 443.

Is there any other information that needs to be gleaned from the report?
 
Old 11-07-2003, 01:31 AM   #6
Rob MacLoud
LQ Newbie
 
Registered: Nov 2003
Location: Japan
Distribution: Red Hat 9
Posts: 1

Rep: Reputation: 0
Are you using the main config file httpd.conf to configure SSL, or the ssl.conf in the conf.d directory?

Hoping that this question answers yours...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
https SSL Certificate Expired lothario Linux - Security 1 01-19-2005 09:42 PM
https server..cetificate and ssl name_in_use450 Linux - General 0 09-05-2004 11:03 AM
Apache2, SSL, HTTPS... KneeLess Debian 3 09-02-2004 09:44 PM
Totaly new to SSL via apache (i want https to work) bpk Linux - Newbie 2 06-14-2004 10:19 PM
Mozilla 1.4 HTTPS SSL Tunnel Proxy Problem Ynog Linux - Software 0 07-30-2003 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration