Firefox表示即使证书链很好,证书还是不受信任的

肖恩·卢丁(Shaun Luttin)

https://www.bigfont.ca的HTTPS可在Chrome,Internet Explorer和Safari中使用,但不能在Firefox中使用。它还通过了此SSL Checkers的所有测试Firefox说:

连接到www.bigfont.ca时发生错误。对等方的证书已被标记为用户不信任。(错误代码:sec_error_untrusted_cert)

这是Firefox的已知情况。我们查看了StartSSL常见问题,其建议是:

您必须将中间CA证书添加到您的安装中。

我们正在使用SmartSSL和OpenSSL创建SSL证书。因此,我们按照Troy Hunt的教程添加了中间CA证书,并运行了此命令以创建PFX。

OpenSSL> pkcs12 -export -in bigfont.ca.crt -inkey bigfont.ca-encrypted.key 
-certfile sub.class1.server.ca.pem -out bigfont.ca.pfx -password pass:my-password

我们将结果bigfont.ca.pfx文件上传到Azure网站的“配置”页面。

Windows Azure网站配置

为了进一步测试,我们进行了测试openssl s_client -servername www.bigfont.ca -connect www.bigfont.ca:443 -showcerts结果表明,证书链运行良好。

depth=1 C = IL, 
O = StartCom Ltd., 
OU = Secure Digital Certificate Signing, 
CN = StartCom Class 1 Primary Intermediate Server CA

verify error:num=20:unable to get local issuer certificate
verify return:0

---
Certificate chain

 0 s:
      /description=T8eg9X1a04Scp3hM
      /C=CA
      /CN=www.bigfont.ca
      /[email protected]
   i:
      /C=IL
      /O=StartCom Ltd.
      /OU=Secure Digital Certificate Signing
      /CN=StartCom Class 1 Primary Intermediate Server CA

-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

 1 s:
      /C=IL
      /O=StartCom Ltd.
      /OU=Secure Digital Certificate Signing
      /CN=StartCom Class 1 Primary Intermediate Server CA
   i:
      /C=IL
      /O=StartCom Ltd.
      /OU=Secure Digital Certificate Signing
      /CN=StartCom Certification Authority

-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
---
Server certificate
subject=
      /description=T8eg9X1a04Scp3hM
      /C=CA
      /CN=www.bigfont.ca
      /[email protected]
issuer=
      /C=IL
      /O=StartCom Ltd.
      /OU=Secure Digital Certificate Signing
      /CN=StartCom Class 1 Primary Intermediate Server CA

---
No client certificate CA names sent

---
SSL handshake has read 3369 bytes and written 547 bytes

---
New, TLSv1/SSLv3, Cipher is RC4-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : RC4-SHA
    Session-ID: 6E1F00009...FDD7B7BF7B7
    Session-ID-ctx:
    Master-Key: 2FA3C020A506198C1319081F9E023D35...5AEB01985323AADCF9
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1413947020
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate) 

---
read:errno=10054

如果链条正常工作,为什么Firefox会抱怨?

肖恩·卢丁(Shaun Luttin)

解决方案

将Firefox重置为其默认状态

  1. 火狐浏览器
  2. 帮助
  3. 故障排除信息
  4. 重置Firefox

细节

原来,该问题与cert8.db存储Firefox证书文件有关在这里找到它:

  1. 火狐浏览器
  2. 帮助
  3. 故障排除信息
  4. 应用基础
  5. 个人资料文件夹
  6. 显示文件夹

问题可能出在我们弄乱了Firefox的StartCom权威证书。我们可能是在混淆恢复StartSSL Client Authentication证书的过程中这样做的

您的证书(客户端身份验证)

在此处输入图片说明

当局

我们可能不小心将它们弄乱了,从而使Firefox不信任StartCom。

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章