how to use TLSV1 or SSLV3 for first handshake(Client Hello) in Java?

前端 未结 3 1701
离开以前
离开以前 2021-02-03 15:13

When I execute the following code, why is the first handshake SSLv2, not TLSv1 or SSLv3?

How to use TLSV1 or SSLV3 for first handshake in Java?

String          


        
3条回答
  •  广开言路
    2021-02-03 15:23

    For TLSv1: Starting the client jvm with

    -Dhttps.protocols="TLSv1" 
    

    or using

    System.setProperty("https.protocols", "TLSv1");
    

    solved the problem for me.

提交回复
热议问题