Problems connecting via HTTPS/SSL through own Java client

前端 未结 4 713
既然无缘
既然无缘 2020-11-27 18:13

I\'m trying to establish a connection to trackobot.com to receive some JSON data. The server only allows connections through HTTPS/SSL. Here is the code:

jav         


        
4条回答
  •  Happy的楠姐
    2020-11-27 18:47

    You probably need upgrade your JDK, we had similar problem on our linux server. We tried different approaches. Nothing seemed to work including installing new JCE.

    There is one bug in the JDK about SSL Connection HostnameVerifier that disables SNI extension causing a handshake failure: http://www.oracle.com/technetwork/java/javase/2col/8u141-bugfixes-3720387.html.

    We upgraded to the latest jdk 8u162, everything looks good now.

提交回复
热议问题