Browse Source

Allow user-provided TLS certificates

Ibrahim M. Ghazal 1 year ago
parent
commit
93f1480de3

+ 2 - 1
org.fox.ttrss/src/main/AndroidManifest.xml

@@ -17,7 +17,8 @@
         android:fullBackupOnly="true"
         android:hardwareAccelerated="true"
         android:icon="@drawable/ic_launcher"
-        android:label="@string/app_name" >
+        android:label="@string/app_name"
+        android:networkSecurityConfig="@xml/network_security_config" >
 
         <!-- <meta-data android:name="com.bumptech.glide.integration.okhttp3.OkHttpGlideModule"
             tools:node="remove" /> -->

+ 10 - 0
org.fox.ttrss/src/main/res/xml/network_security_config.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<network-security-config>
+    <base-config cleartextTrafficPermitted="true">
+        <trust-anchors>
+            <certificates src="system" />
+            <certificates src="user" />
+        </trust-anchors>
+    </base-config>
+</network-security-config>
+