diff --git a/app/src/main/java/eu/faircode/email/MailService.java b/app/src/main/java/eu/faircode/email/MailService.java index 4b66e2ac66..ddf99d0bd1 100644 --- a/app/src/main/java/eu/faircode/email/MailService.java +++ b/app/src/main/java/eu/faircode/email/MailService.java @@ -455,14 +455,7 @@ public class MailService implements AutoCloseable { SSLContext sslContext = SSLContext.getInstance("TLS"); TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - try { - KeyStore ks = KeyStore.getInstance("AndroidCAStore"); - ks.load(null, null); - tmf.init(ks); - } catch (IOException ex) { - Log.e(ex); - tmf.init((KeyStore) null); - } + tmf.init((KeyStore) null); TrustManager[] tms = tmf.getTrustManagers(); if (tms == null || tms.length == 0 || !(tms[0] instanceof X509TrustManager)) { diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml index 75f1d4c94b..df997aafd4 100644 --- a/app/src/main/res/xml/network_security_config.xml +++ b/app/src/main/res/xml/network_security_config.xml @@ -4,6 +4,7 @@ + \ No newline at end of file