The solution to the "secure connection failed" error in Firefox caused by enabling SSL in Tomcat

I upgraded Firefox today and found that a previously accessible website was blocked, prompting "Error connecting to 10.0.0.5. SSL received a weak ephemeral Diffie-Hellman key in the server key exchange handshake message. (Error code: ssl_error_weak_server_ephemeral_dh_key) ),As shown below:

There are three workarounds:
Method 1: Modify the tomcat configuration, disable the unsafe method, and modify the Connector node in server.xml as follows:

  1. <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"    
  2.            maxThreads="150" scheme="https" secure="true"    
  3.            clientAuth="false" sslProtocol="TLS"  
  4.            ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA"  
  5.            keystoreFile="/usr/local/apache-tomcat-7.0.62/tomcat.key"     
  6.            keystorePass="aaa"/>  
Apache and Nginx also have similar configurations, please find them yourself.
Method 2: Install the Disable DHE plugin
Method 3: Open about:config
Create or modify the following 4 boolean values ​​to false (you can find them by searching for dhe):

  1. security.ssl3.dhe_dss_aes_128_sha  
  2. security.ssl3.dhe_rsa_aes_128_sha  
  3. security.ssl3.dhe_rsa_aes_256_sha  
  4. security.ssl3.dhe_rsa_des_ede3_sha  

This issue occurs in Firefox 39 and above.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325951495&siteId=291194637