using SSL on a subdomain that points to an EC2 instance

独自空忆成欢 提交于 2019-12-23 05:45:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!