gpt4 book ai didi

google-chrome - 无效的自签名 SSL 证书 - "Subject Alternative Name Missing"

转载 作者:太空宇宙 更新时间:2023-11-03 14:39:54 25 4
gpt4 key购买 nike

最近,Chrome 停止使用我的自签名 SSL 证书,并认为它们不安全。当我查看 DevTools | 中的证书时Security 选项卡,我可以看到它说

Subject Alternative Name Missing The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address.

Certificate Error There are issues with the site's certificate chain (net::ERR_CERT_COMMON_NAME_INVALID).

我该如何解决这个问题?

最佳答案

要解决这个问题,基本上,您需要在创建证书时向 openssl 提供一个额外的参数

-sha256 -extfile v3.ext

v3.ext 是这样的文件,其中 %%DOMAIN%% 替换为您使用的相同名称作为您的 Common Name。更多信息 hereover here .请注意,通常您会将 Common Name%%DOMAIN%% 设置为您尝试为其生成证书的域。因此,如果它是 www.mysupersite.com,那么您将同时使用它。

v3.ext

authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names

[alt_names]
DNS.1 = %%DOMAIN%%

注意:解决这个问题的脚本,和create fully trusted ssl certs for use in Chrome, Safari and from Java clients can be found here

另一个注意事项:如果您想要做的只是阻止 chrome 在查看自签名证书时抛出错误,您可以告诉 Chrome 忽略所有 SSL通过使用特殊的命令行选项启动所有站点的错误,as detailed here on SuperUser

关于google-chrome - 无效的自签名 SSL 证书 - "Subject Alternative Name Missing",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44080195/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com