简体   繁体   English

安装证书后如何解决错误代码:SSL_ERROR_BAD_CERT_DOMAIN?

[英]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.comfoo.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.

相关问题 SSL_ERROR_BAD_CERT_DOMAIN - SSL_ERROR_BAD_CERT_DOMAIN AWS Elastic Beanstalk - 添加了 SSL 证书但仍然出现 HTTPS 错误:SSL_ERROR_BAD_CERT_DOMAIN - AWS Elastic Beanstalk - SSL Certificate added but still HTTPS Error: SSL_ERROR_BAD_CERT_DOMAIN Firefox何时会使用通配符证书抛出ssl_error_bad_cert_domain? - When does Firefox throw ssl_error_bad_cert_domain with a wildcard certificate? 移动Magento后出现SSL错误“ ssl_error_bad_cert_domain” - SSL error “ssl_error_bad_cert_domain” after moving Magento 使用 Surge 将站点部署到自定义域后出现“SSL_ERROR_BAD_CERT_DOMAIN”错误 - Getting 'SSL_ERROR_BAD_CERT_DOMAIN' error after deploying site using Surge to a custom domain 如何解决“NSS 错误 -12276 (SSL_ERROR_BAD_CERT_DOMAIN)” - How to solve "NSS error -12276 (SSL_ERROR_BAD_CERT_DOMAIN)" 将非www重定向到www https nginx(SSL_ERROR_BAD_CERT_DOMAIN) - Redirect non-www to www https nginx (SSL_ERROR_BAD_CERT_DOMAIN) .htaccess:非www到www(带https)在Firefox中显示ssl_error_bad_cert_domain - .htaccess: non www to www (with https) shows ssl_error_bad_cert_domain in Firefox 安装自签名p12证书后,在firefox上获取ssl_error_bad_cert_alert - Getting ssl_error_bad_cert_alert on firefox after installing self signed p12 certificate Mongodb ssl python 中的证书错误,我该如何解决该错误? - Mongodb ssl certificate error in python, how can i fix the error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM