Why does SSL handshake give 'Could not generate DH keypair' exception?

前端 未结 21 1021
梦如初夏
梦如初夏 2020-11-22 07:46

When I make an SSL connection with some IRC servers (but not others - presumably due to the server\'s preferred encryption method) I get the following exception:

<         


        
21条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 08:42

    For me, the following command line fixed the issue:

    java -jar -Dhttps.protocols=TLSv1.2 -Ddeployment.security.TLSv1.2=true -Djavax.net.debug=ssl:handshake XXXXX.jar

    I am using JDK 1.7.0_79

提交回复
热议问题