From d114ff4c1c13519286c9f6ae277ff8aa54568b01 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 20 Apr 2023 18:55:44 +0200 Subject: [PATCH] Use getDefault to get the SSLContext --- 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 ad5be0b4..33cf7f77 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("TLS"); + SSLContext tlsContext = SSLContext.getDefault(); if (isDeviceTrusted) { tlsContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), RandomHelper.secureRandom); } else {