using SSL on a subdomain that points to an EC2 ins

2019-08-31 02:12发布

问题:

I'm pretty new to Amazon instances so any help or advice would be appreciated

We host our own webserver, ourdomain.org, that has several subdomains. One of these subdomains, sub.ourdomain.org, is actually pointing to an amazon EC2 instance. The instance is reached through a DNS A record.

Everything is working fine but now we want to use SSL.

My question is where to install the certificate and how to configure it. I'm thinking we want to do this on the amazon instance but I'm worried that the certificate will be invalid because the domain the EC2 instance is part of will be different from our webservers domain. Will this be an issue? Are there other potential issues I'm missing

Any help greatly appreciated.

回答1:

You have to install the SSL cert/private key on the EC2 instance (your webserver: apache, nginx, etc.) Make sure the certificate domain matches exactly sub.ourdomain.org or it's a star certificate meaning *.ourdomain.org