Fix TLSv1.3. Maybe we should expose a API to allow user to use org.apache.http.ssl.SSLContextBuilder. Fixes #948.

master
Sutra Zhou 2020-09-21 17:47:06 +08:00
parent 94ac7ca3b6
commit b4b1df85a0
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class HttpClientGenerator {
};
SSLContext sc = SSLContext.getInstance("SSLv3");
SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, new TrustManager[] { trustManager }, null);
return sc;
}