ssl - 为域和子域创建自签名证书 - NET::ERR_CERT_COMMON_NAME_INVALID

标签 ssl dns openssl windows-7-x64

我关注了this为开发目的在 Windows 上创建签名 SSL 证书的教程,它非常适合我的一个域(我使用主机文件来模拟 dns)。然后我发现我有很多子域,为每个子域创建一个证书会很麻烦。因此,我尝试按照 serverfault 的一些答案中的建议,在 Common 字段中使用通配符创建证书。像这样:

Common Name: *.myserver.net/CN=myserver.net

但是,将此证书导入受信任的根证书颁发机构后,我在 Chrome 中遇到 NET::ERR_CERT_COMMON_NAME_INVALID 错误,对于主域及其所有子域,例如:https ://sub1.myserver.nethttps://myserver.net

This server could not prove that it is myserver.net; its security certificate is from *.myserver.net/CN=myserver.net.

This may be caused by a misconfiguration or an attacker intercepting your connection.

Common Name 字段是否有问题导致此错误?

最佳答案

Chrome 58 有 dropped support for certificates without Subject Alternative Names .

接下来,这可能是您遇到此错误的另一个原因。

关于ssl - 为域和子域创建自签名证书 - NET::ERR_CERT_COMMON_NAME_INVALID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27294589/

相关文章:

node.js - 错误状态 Unable to require(node_modules/prisma/libquery_engine-debian-openssl-1.1.x.so.node) while npx performing prisma generate

php - SSL/TLS 操作失败 PHP5.6 -curl-ca-bundle.crt 和 cacert.pem

node.js - 安装错误 - libcurl 不支持或禁用协议(protocol) "https"

dns - 您何时会选择 Route 53 别名而不是 CNAME?

dns - G Suite for MailChimp上有多个DKIM和SPF记录

c - 在不检查证书的情况下使用 OpenSSL,但我的数据是否仍在加密?

java - 从本地机器到 AWS RDS PostgreSQL 数据库的连接速度非常慢

java - JSSE 引用指南中的 "the highest-priority implementation for the TrustManagerFactory"是什么?

go - 如何存储DNS记录(Go权威域名服务器)

python - AWS Lambda 未检测到 pyopenssl