I'm moving my hosting from justhost.com (horrible) to the amazon cloud as it's cheaper, faster, and far more flexible.
My conundrum is that I will need SSL installed in the Amazon cloud. Note - I already purchased an SSL cert from justhost.com (actually through geocerts.com) and have the private key, domain cert and trust cert in my hand.
I have 3 files all downloaded from geocerts.
1) domain.crt :the cert for the domain
2) private.key : my private key
3) issuer.crt : the issuer certificate
Below is my httpd.conf snippet
NameVirtualHost *:443
<VirtualHost _default_:443>
ServerName www.casinobitco.in
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/domain.crt
SSLCertificateKeyFile /etc/httpd/ssl/private.key
SSLCertificateChainFile /etc/httpd/ssl/issuer.crt
</VirtualHost>
Now, in testing - the cert doesn't seem proper? It basically looks self-signed, fake, etc. https://ec2-54-232-212-186.sa-east-1.compute.amazonaws.com
Seems like the certificate was issued for the wrong domain name (CNAME). Instead of
www.casinobitco.in
it works only forip-172-31-16-43
. In addition, it is indeed self-signed.Qualys gives the following test results:
OK, Turns out, based on my install, mod_ssl was separate from apache so it was running externally.
What's this mean? I needed to make the virtual host edits in /etc/httpd/conf.d/ssl.conf and NOT httpd.conf.
Hopefully someone will see this thread and it will help them out!