Don't request an explict TLS version

This commit is contained in:
Cameron Gutman 2019-07-05 21:22:27 -07:00
parent f7bfa63145
commit 71aadfa2f5

View File

@ -278,7 +278,7 @@ public class NvHTTP {
// Doing this each time we create a socket is required
// to avoid the SSLv3 fallback that causes connection failures
try {
SSLContext sc = SSLContext.getInstance("TLSv1");
SSLContext sc = SSLContext.getInstance("TLS");
sc.init(keyManager, trustManager, new SecureRandom());
client.setSslSocketFactory(sc.getSocketFactory());