Fix TLSv1.3. Maybe we should expose a API to allow user to use org.apache.http.ssl.SSLContextBuilder. Fixes #948.
parent
94ac7ca3b6
commit
b4b1df85a0
|
@ -96,7 +96,7 @@ public class HttpClientGenerator {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SSLContext sc = SSLContext.getInstance("SSLv3");
|
SSLContext sc = SSLContext.getInstance("TLS");
|
||||||
sc.init(null, new TrustManager[] { trustManager }, null);
|
sc.init(null, new TrustManager[] { trustManager }, null);
|
||||||
return sc;
|
return sc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue