加入TLSv1.2

This commit is contained in:
egzosn
2021-11-12 20:58:24 +08:00
parent 7acb047c45
commit 556c3e766e

View File

@@ -153,7 +153,7 @@ public class HttpRequestTemplate {
//指定TLS版本
sslsf = new SSLConnectionSocketFactory(
sslcontext, new String[]{"TLSv1"}, null,
sslcontext, new String[]{"TLSv1","TLSv1.2"}, null,
new DefaultHostnameVerifier());
return sslsf;