ssl - 为什么 Firefox 不信任我的自签名证书?

标签 ssl firefox certificate keychain trust

我有一个本地域 (markfisher.local),为此我制作了一个自签名证书,我已将其添加到钥匙串(keychain)访问中的证书中(我使用的是 Mac)。这会导致证书在 Chrome 和 Safari 中受到信任。如果我将 KeyChain Access 中的证书信任编辑为“从不信任”,那么 Chrome 和 Safari 将不再接受它,如果我将其更改回“始终信任”,那么我可以再次访问 markfisher.local OK。

但是在 Firefox 中访问该站点时,我得到以下信息:

markfisher.local uses an invalid security certificate. The certificate does not come from a trusted source. Error code: MOZILLA_PKIX_ERROR_CA_CERT_USED_AS_END_ENTITY



我设置了security.enterprise_roots.enabledtrue正如 this answer 中的建议.此外,转到首选项 > 隐私和安全 > 查看证书,我可以看到我的证书位于“权限”选项卡中,并且我在“编辑信任”对话框中检查了“此证书可以识别网站”。这最初没有被检查

但是 Firefox 拒绝接受证书。我怎样才能解决这个问题?

最佳答案

https://bugzilla.mozilla.org/show_bug.cgi?id=1034124特别是这个答案:

Looks like that certificate has a basicConstraints extension with the value cA: TRUE. We stopped allowing CA certificates to act as end-entity certificates. That certificate should be regenerated without the basicConstraints extension.



这也在 https://wiki.mozilla.org/SecurityEngineering/x509Certs 中进行了解释。

Error Code: MOZILLA_PKIX_ERROR_CA_CERT_USED_AS_END_ENTITY

What It Means: A certificate with a basic constraints extension with cA:TRUE is being used as an end-entity certificate

What Can I Do: Re-generate the end-entity certificate without the basic constraints extension

关于ssl - 为什么 Firefox 不信任我的自签名证书?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59738140/

相关文章:

java - 如何在 apache FTPS 客户端中使用自定义套接字工厂

asp.net - IIS6 SSL 配置 - 必须登录两次(一次用于 :80, 一次用于:443)

cloudflare 后 wordpress 网站管理员登录无法在 https 上工作

c# - WebDriverException : 'SecurityError: The operation is insecure.' error using document. write() 在 Firefox 中通过 Selenium

reactjs - 如果某些列在某些浏览器中是固定的,为什么表头和数据在 Ant 表中会重叠?

authentication - Paw - 支持 https 相互(客户端证书)身份验证?

azure - Azure 中的公共(public)证书与私有(private)证书

java - 使用自生成的 key 来测试 java ssl 应用程序

javascript - 网络 worker 不在 firefox 8 中工作,在 firefox 7 中工作

openssl - 使用 openssl 将私钥从 .cer 提取到 .pem