javax.net.ssl.SSLException: Received fatal alert: protocol_version
在Java 1.8中设置Protocoll:
SSLContext sc = SSLContext.getInstance("TLSv1.2");
// Init the SSLContext with a TrustManager[] and SecureRandom()
sc.init(null, trustCerts, new java.security.SecureRandom(...
转载
2019-06-05 14:38:46 ·
1312 阅读 ·
0 评论