Skip to content

Build your personal knowledge base with Trilium Notes

Enhance network security config with trust anchors

Niklas8ddfa5917201
diff --git a/apps/mobile/android/app/src/main/res/xml/network_security_config.xml b/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
index ec61a069a9..9915466bd8 100644
--- a/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
+++ b/apps/mobile/android/app/src/main/res/xml/network_security_config.xml
@@ -3,5 +3,12 @@
<!-- Allow cleartext (plain HTTP) traffic to any host.
Trilium users commonly self-host sync servers on LAN IPs or
personal domains without TLS. -->
- <base-config cleartextTrafficPermitted="true" />
+ <base-config cleartextTrafficPermitted="true">
+ <trust-anchors>
+ <!-- Trust the pre-installed system Certificate Authorities (CAs) -->
+ <certificates src="system" />
+ <!-- Trust custom/self-signed CAs manually installed by the user on the device -->
+ <certificates src="user" />
+ </trust-anchors>
+ </base-config>
</network-security-config>