Firefox不信任自签名证书 [英] Firefox not trusting self-signed certificate

查看:316
本文介绍了Firefox不信任自签名证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将计算机配置为信任用于测试网站的自签名证书.但是我在使用Firefox时遇到问题.Chrome和IE都可以.

I'm trying to configure my computer to trust a self-signed certificate for testing a website. However I'm having problems with Firefox. Chrome and IE are fine with it.

我已经完成了以下工作.

I've done the following.

  1. 创建一个2048位pem rsa密钥,并使用openssl创建crt
  2. 从密钥文件和crt文件创建pfx文件
  3. 使用MMC将pfx导入到服务器上的个人证书存储中
  4. 已配置IIS以使用该网站的证书

在客户端PC上

  1. 使用MMC将pem crt文件导入个人证书存储区

在这一点上,Chrome完全适合该站点,并显示绿色的挂锁.IE和Edge同样会立即显示警告或错误.

At this point Chrome is totally fine with the site and displays the green padlock. IE and Edge likewise show now warnings or errors.

但是Firefox给出了SSL错误,并且由于该证书是自签名的,因此拒绝信任该证书.

However Firefox gives an SSL error and refuses to trust the certificate because it's self-signed.

我尝试将证书创建为CA证书和非CA证书,但这没有什么区别.

I've tried creating the certificate as a CA and non-CA certificate, and it makes no difference.

我还尝试过将证书直接添加到Firefox的授权机构"列表中.它仍然不会信任它.

I've also tried adding the certificate directly to Firefox's list of Authorities. It still won't trust it.

是否有说服Firefox信任自签名证书的某些首选方法?有什么方法可以说服证书不是自签名的?

Is there some preferred method for convincing Firefox to trust a self-signed certificate? Is there some way to convince it that the certificate is not self-signed?

推荐答案

您必须转到about:config并更改配置security.enterprise_roots.enabled为true.

You must go to about:config and change the configuration security.enterprise_roots.enabled to true.

https://wiki.mozilla.org/CA:AddRootToFirefox

这篇关于Firefox不信任自签名证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆