For EC2 in public subnet
I have a SSL setup between the Internet and ALB with mydomain.org
.
I want to also setup SSL between ALB and EC2. The communication protocol is HTTP/HTTPS and the reverse proxy in EC2 is nginx.
But the thing is I cannot directly generate EC2 amazonaws.com with Let's Encrypt.
That leads me to situation where i need to create a subdomain: ec2.domain.org
and point to the EC2 IP, so that I can use my own SSL cert.
The pointing ec2 domain part seems something redundant to me since a EC2 DNS has already been provided. Am I doing this wrong or there is a another way of using https with EC2 DNS?
EC2 in private subnet Also, if i am only allowing HTTP/HTTPS access for the EC2 to be accessible by ALB only, how can I setup the SSL between EC2 and ALB in the requirement where SSL is strictly required between EC2 and ALB.