0 votes
1 view
in AWS by (19.2k 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.6k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...