问题
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
来源:https://stackoverflow.com/questions/21127925/using-ssl-on-a-subdomain-that-points-to-an-ec2-instance