From e2dbc39e3a73cc6c7cf1c27362e4f2b768e88f42 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 10 Apr 2023 10:53:17 +0200 Subject: [PATCH] Do not force TLS v1 Stop specifying the TLS version we want and let the system chose Co-authored-by: Daniel Tang --- src/org/kde/kdeconnect/Helpers/SecurityHelpers/SslHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Helpers/SecurityHelpers/SslHelper.java b/src/org/kde/kdeconnect/Helpers/SecurityHelpers/SslHelper.java index 76cfb016..ad5be0b4 100644 --- a/src/org/kde/kdeconnect/Helpers/SecurityHelpers/SslHelper.java +++ b/src/org/kde/kdeconnect/Helpers/SecurityHelpers/SslHelper.java @@ -209,7 +209,7 @@ public class SslHelper { trustManagerFactory.init(keyStore); // Setup custom trust manager if device not trusted - SSLContext tlsContext = SSLContext.getInstance("TLSv1"); //Newer TLS versions are only supported on API 16+ + SSLContext tlsContext = SSLContext.getInstance("TLS"); if (isDeviceTrusted) { tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom); } else {