1
votes

We got a certificate from ACM for our domain say example.com. On the application load balancer I deployed this and created a HTTPS listener with forwarding to my target group. The target group is an EC2 instances in a ASG. Now the issue is when I access my LB URL with HTTPS I get the SSL_ERROR_BAD_CERT_DOMAIN error with the description

XXXXXX.us-west-2.elb.amazonaws.com uses an invalid security certificate. The certificate is only valid for example.com

I now this is probably the expected behavior, but in this case, how do I apply a ACM certificate of my domain on the application load balancer? Thanks,

1

1 Answers

3
votes

You have created a certificate for a specific domain, say 'example.com'. But you are not using this domain when accessing the ALB. Since there is a mismatch between the domain/hostname you are using ('XXXXXX.us-west-2.elb.amazonaws.com') and the certificates domain ('example.com'), your HTTP client shows you an error.

Create a DNS entry

example.com CNAME XXXXXX.us-west-2.elb.amazonaws.com

and access the domain using example.comas a hostname.