0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

Allow connections to user-trusted CAs

For custom sync servers. Closes #5423
This commit is contained in:
ARR8 2019-09-11 10:40:47 -04:00 committed by Mike Hardy
parent bfa2ed4799
commit c58a38a804
2 changed files with 13 additions and 1 deletions

View File

@ -84,7 +84,8 @@
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize"
android:usesCleartextTraffic="true"
android:largeHeap="true">
android:largeHeap="true"
android:networkSecurityConfig="@xml/network_security_config">
<activity
android:name="com.ichi2.anki.IntentHandler"
android:configChanges="keyboardHidden|orientation|screenSize|locale"

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
<trust-anchors>
<!-- Trust preinstalled CAs -->
<certificates src="system" />
<!-- Additionally trust user added CAs -->
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>