Allow User Trusted Credentials
Subsonic/Ampache are self-hosted applications and should need to be able to support a user defined root certificate if that is installed on the android device. The default of android applications is to ignore the user trusted credentials. This patch overrides this by allowing certificates that are signed by certificates added by the user to their device. See: https://developer.android.com/training/articles/security-config
This commit is contained in:
parent
298a06ab5b
commit
8cfae03550
|
@ -47,6 +47,7 @@
|
||||||
android:icon="@drawable/launch"
|
android:icon="@drawable/launch"
|
||||||
android:label="@string/common.appname"
|
android:label="@string/common.appname"
|
||||||
android:usesCleartextTraffic="true"
|
android:usesCleartextTraffic="true"
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:theme="@style/LaunchScreen">
|
android:theme="@style/LaunchScreen">
|
||||||
|
|
||||||
<uses-library android:name="android.test.runner" />
|
<uses-library android:name="android.test.runner" />
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<network-security-config>
|
||||||
|
<base-config cleartextTrafficPermitted="true">
|
||||||
|
<trust-anchors>
|
||||||
|
<!-- Trust preinstalled CAs -->
|
||||||
|
<certificates src="system"/>
|
||||||
|
|
||||||
|
<!-- Additionally trust user added CAs -->
|
||||||
|
<certificates src="user"/>
|
||||||
|
</trust-anchors>
|
||||||
|
</base-config>
|
||||||
|
</network-security-config>
|
Loading…
Reference in New Issue