---
title: "firefox https出错解决记录"
author: "21jhf"
date: "2015-08-17T12:39:22Z"
tags: []
categories: ["Web前端"]
slug: "firefox-https"
draft: false
lastmod: "2015-08-17T12:39:22Z"
id: 2235993
url: "https://21jhf.iteye.com/blog/2235993"
---

使用Firefox打开https连接，出现下面错误提示：
安全连接失败

连接 localhost:8443 时发生错误。 在服务器密钥交换握手信息中 SSL 收到了一个弱临时 Diffie-Hellman 密钥。 （错误码： ssl_error_weak_server_ephemeral_dh_key）

    您尝试查看的页面无法显示，因为已收到数据的可靠性无法证实。
    请联系网站的所有者，告知他们这个问题。

解决方案：
打开 about:config
新建或修改以下4个布尔值为 false 即可（搜索ssl3.dhe能找到）：
security.ssl3.dhe_dss_aes_128_sha
security.ssl3.dhe_rsa_aes_128_sha
security.ssl3.dhe_rsa_aes_256_sha
security.ssl3.dhe_rsa_des_ede3_sha
双击修改值
重新打开后添加安全例外，问题解决