[英]How can I fix Error code: SSL_ERROR_BAD_CERT_DOMAIN after installing certificate?
My web server's FQDN is foo.bar.com 我的Web服务器的FQDN是foo.bar.com
It is aliased and most commonly accessed at baz.bar.com 它是别名,通常在baz.bar.com上访问
I had a SSL certificate generated by our netsec guys and I installed it to the server and enabled the site. 我有一个由netsec员工生成的SSL证书,并将其安装到服务器上并启用了该站点。 Now I am receiving Error code: SSL_ERROR_BAD_CERT_DOMAIN because the certificate is only for foo.bar.com, not baz.bar.com
现在,我收到错误代码:SSL_ERROR_BAD_CERT_DOMAIN,因为证书仅用于foo.bar.com,而不是baz.bar.com。
How can I get this resolved? 我该如何解决?
The hostname in the URL you use to access a site must match a subject of the certificate. 您用于访问网站的URL中的主机名必须与证书的主题匹配。 This means if you want to access the site as bot
baz.bar.com
and foo.bar.com
you either need a certificate which contains both or need two certificates and serve the certificate based on the request name. 这意味着,如果要以bot
baz.bar.com
和foo.bar.com
身份访问该网站,则需要包含两者的证书,或者需要两个证书,并根据请求名称提供该证书。 In the last case the client must support SNI if both names point to the same IP address. 在后一种情况下,如果两个名称都指向相同的IP地址,则客户端必须支持SNI 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.