Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I recently installed an SSL certificate on my Amazon EC2 Ubuntu 12.04(32bit) server running Apache 2.

When I attempt to access my site via https, it does not load. When I perform a nmap scan, I see that port 443 is not open.

I tried to open port 443 in my IP tables to no avail. iptables -L yields

Chain INPUT (policy ACCEPT)

target     prot opt source               destination

ACCEPT     tcp -- anywhere             anywhere tcp dpt:https

Here's how I installed SSL

I modified /etc/init.d/apache2.conf to include ssl.conf and modified ssl.conf to include the requisite paths of my certificate files, ie

SSLCertificateFile /path/file SSLCertificateKeyFile /path/file SSLCertificateChainFile /path/file

I configured my security group to allow inbound requests from port 443 (TCP source:0.0.0.0/0)

When I perform the following test with php

if (!extension_loaded('openssl')) 

{

  echo "not loaded";

}

else

{

  echo "loaded"   ;

}

I get "loaded".

Any ideas?

1 Answer

0 votes
by (44.4k points)

Check if Apache listens on port 443, if not change it in httpd-ssl.conf. Also, check if the firewall is blocking 443.

It doesn’t work, try restarting Apache.

Related questions

0 votes
1 answer
asked Jul 8, 2019 in AWS by yuvraj (19.1k points)
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...