简体   繁体   English

ACM证书 - SSL_ERROR_BAD_CERT_DOMAIN

[英]ACM certificate - SSL_ERROR_BAD_CERT_DOMAIN

We got a certificate from ACM for our domain say example.com. 我们从ACM获得了一个证书,我们的域名是example.com。 On the application load balancer I deployed this and created a HTTPS listener with forwarding to my target group. 在应用程序负载均衡器上,我部署了它并创建了一个HTTPS侦听器,并转发到我的目标组。 The target group is an EC2 instances in a ASG. 目标组是ASG中的EC2实例。 Now the issue is when I access my LB URL with HTTPS I get the SSL_ERROR_BAD_CERT_DOMAIN error with the description 现在的问题是,当我使用HTTPS访问我的LB URL时,我得到SSL_ERROR_BAD_CERT_DOMAIN错误,其中包含描述

XXXXXX.us-west-2.elb.amazonaws.com uses an invalid security certificate. XXXXXX.us-west-2.elb.amazonaws.com使用无效的安全证书。 The certificate is only valid for example.com 该证书仅对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? 我现在这可能是预期的行为,但在这种情况下,如何在应用程序负载均衡器上应用我的域的ACM证书? Thanks, 谢谢,

You have created a certificate for a specific domain, say 'example.com'. 您已为特定域创建了证书,例如“example.com”。 But you are not using this domain when accessing the ALB. 但是在访问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. 由于您使用的域名/主机名('XXXXXX.us-west-2.elb.amazonaws.com')与证书域('example.com')不匹配,因此您的HTTP客户端会显示错误。

Create a DNS entry 创建DNS条目

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

and access the domain using example.com as a hostname. 并使用example.com作为主机名访问域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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