1820160 Members
2828 Online
109620 Solutions
New Discussion юеВ

Re: 443 port

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

443 port

How can i know if my red hat linux is listening for 443 port (https)?
10 REPLIES 10
James A. Donovan
Honored Contributor

Re: 443 port

netstat -a|grep LISTEN|grep 443

If it's listening, you'll see something there...
Remember, wherever you go, there you are...
Edwin Ruiz_2
Super Advisor

Re: 443 port

i get that

[root@salato-apl10 conf]# netstat -a|grep LISTEN|grep 443
tcp 0 0 *:4443 *:* LISTEN

i think that this is other port, isnt it?

how can i enable https en linux?
Stuart Browne
Honored Contributor
Solution

Re: 443 port

Correct, that's something else.

Using a command like 'netstat -ntlp | grep 4443' will tell you exactally what.

Now, as for getting a 'https' service running, and how easy it is to set up, depends on what Linux distribution you are running.

If you're running a recent RedHat distribution for instance (7.3 or newer I beleive), Apache (httpd) has a 'mod_ssl' package distributed by RH to do it.

If you're compiling your own services, then you'll need the Apache source, the mod_ssl source, and the openssl libraries, and a bit of patience.

If you're running RH (or Debian, i beleive they have packages for https as well), then just go to the appropraite site, and download them.

If you're compiling your own, then start at http://www.modssl.org/ and follow the instructions.
One long-haired git at your service...
Stuart Browne
Honored Contributor

Re: 443 port

.. Of course I didn't realise that 'mod_ssl' is part of the standard Apache 2 packages/source ..

Going directly to http://httpd.apache.org/docs-2.0/ is a good start.
One long-haired git at your service...
Martin P.J. Zinser
Honored Contributor

Re: 443 port

Hello,

the easiest: Fire up your favorite browser and do a https://localhost/ . If you get a page you have a (secure) Webserver running.

Sidenote: According to my services file port 4443 is "reserved" for Pharos.

Greetings, Martin
Alexander Chuzhoy
Honored Contributor

Re: 443 port

Another option is to telnet (if from another station) to port 443. Like in the example
telnet x.x.x.x 443 if you have a black window-then the port is open otherwise you'll get connection failed..
Edwin Ruiz_2
Super Advisor

Re: 443 port

Ok! thanks.. then this configuration depend from Apache but no from linux, isnt it?

Alexander Chuzhoy
Honored Contributor

Re: 443 port

In most cases the apache (if it's linux) is listening on 443 port.So the answer is yes - The configuration depends on apache.Specifically look in the file
/etc/httpd/conf.d/ssl.conf file.
you have the option to specify different port.

If you have erlier versions of linux then the file to edit would be
/etc/httpd/conf/httpd.conf
Edwin Ruiz_2
Super Advisor

Re: 443 port

ok thanks
rvrameshbabu
Advisor

Re: 443 port

Below commands can be used to find whether the port is listening or not.

# nmap | egrep 'https|443'

# lsof -i tcp:443