Merge pull request #5478 from k9mail/user_installed_CAs

Add network security config to allow user-installed CAs
This commit is contained in:
cketti 2021-07-29 12:15:36 +02:00 committed by GitHub
commit 70449bd9ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -45,6 +45,7 @@
android:name="com.fsck.k9.App"
android:allowTaskReparenting="false"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.K9.Startup"

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools"
tools:ignore="InsecureBaseConfiguration,AcceptsUserCertificates">
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>