简体   繁体   中英

How to implement an SSL certificate on AWS EC2 and ELB with a domain register with Godaddy

I have inherited a project which is hosted on AWS EC2. The domain is registered with GoDaddy. I am trying to assign an SSL certificate to the application. The site can be found at: atlasvehicles.com .

I have done the following things:

  1. Created a certificate using AWS Certificate manager and verified it
  2. Created an Application load balancer and assigned the SSL certificate. I followed this document up to the end of step 2.
  3. I created a new Hosted Zone in Route 53 and added the ip from the EC2 (see pictures below)

Picture of IP on EC2 | Adding IP to Route 53

  1. I then went to GoDaddy.com and changed the named server to the one's listed in Route 53.

I now have a situation where it will server up via http but not https. am I bypassing the load balancer with my Route 53 and if so how do I correct this?

Any help on this would be really appreciate.

==========UPDATED==============

Hi I have changed the A record in Route 53 to the alias given in ELB (they're both the same account), but this still doesn't seem to be resolving, and worse, the standard http isn't working now.

Please see the image below for my configuration.

ELB configuration | Route 53 config

I appreciate this is probably sensitive information but I'm getting kind of desperate. Help would be appreciated.

Yes you are bypassing the load balancer. The load balancer's target should be the EC2 instance. The domain record in Route53 should point to the load balancer (via an Alias record), not the EC2 instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM