amazon-web-services - 使用 google 域的 AWS SSL 配置

标签 amazon-web-services ssl amazon-ec2 elastic-load-balancer google-domains

我对使用 google 域的 aws SSL 配置有疑问。以下是我网站的配置。 www.abc.com Google 域
myloadbalancer-XXXXXX.elb.amazon.com aws 负载均衡器

我已经在 ACM 上创建了 SSL 证书,如附图所示 AWS ACM screenshot

然后我使用 Lister HTTPS 创建 loadblancer 并指向 HTTP 80 端口(运行网站的 EC2 实例)Screen shot of AWS load balancer

我的谷歌域 abc.com 指向负载均衡器 url

问题是当我在浏览器中打开负载均衡器 URL 时显示错误 NET::ERR_CERT_COMMON_NAME_INVALID 如附图 Load balancer browser screenshot 所示

当我打开谷歌域 abc.com 时,它甚至不显示 HTTPS。它适用于 http:abc.com

我无法找出为什么 abc.com 不能使用 HTTPS。 我也很困惑,在 aws 上我们在 ACM 中为域 (abc.com) 设置 SSL,然后在 aws 负载均衡器中使用这个证书。负载均衡器再次连接到 google 域。然后谷歌域知道通过负载均衡器获取 SSL。我在整个设置中是否遗漏了什么

最佳答案

您应该申请一个新的证书并添加*.abc.comabc.com 作为其域名。 根据documentation :

When you request a wildcard certificate, the asterisk (*) must be in the leftmost position of the domain name and can protect only one subdomain level. For example, *.example.com can protect login.example.com and test.example.com, but it cannot protect test.login.example.com. Also note that *.example.com protects only the subdomains of example.com, it does not protect the bare or apex domain (example.com). However, you can request a certificate that protects a bare or apex domain and its subdomains by specifying multiple domain names in your request. For example, you can request a certificate that protects example.com and *.example.com.

关于amazon-web-services - 使用 google 域的 AWS SSL 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47199599/

相关文章:

ssl - CSR 文件丢失但有 KEY 文件和 CRT 文件

amazon-web-services - AWS Elastic Beanstalk Namecheap SSL 配置

mysql - 我无法通过 ruby​​ on rails 连接到远程 mysql 服务器

linux - AWS_EC2 ssh 权限被拒绝(公钥)

ios - 在 WKWebView 中允许未经验证的 ssl 证书

ssh - Amazon EC2 AMI 根 Authorized_keys

amazon-web-services - 创建 cloudformation 模板,该模板创建具有多可用区/ELB 的开发和生产环境,安装了 1 个 RDS 的 WordPress

amazon-web-services - 当消息在队列中时,Amazon SQS 长轮询返回 0 条消息

amazon-web-services - AWS 运动 : determine whether a named stream exists

amazon-web-services - 用于将多个文件上传到 S3 中的路径的预签名 URL