-
-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile: Add support for trusting user-added CAs on Android
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This config was created to address: https://github.com/zulip/zulip-mobile/issues/3312 --> | ||
<network-security-config> | ||
<base-config> | ||
<!-- Trusting user-supplied CAs now requires opt-in, and we are doing so here --> | ||
<trust-anchors> | ||
<certificates src="system" /> | ||
<certificates src="user" /> | ||
</trust-anchors> | ||
</base-config> | ||
<domain-config> | ||
<!-- Do not trust user-supplied certs for the following Zulip-owned domains (including subdomains) --> | ||
<domain includeSubdomains="true">zulipchat.com</domain> | ||
<domain includeSubdomains="true">zulip.org</domain> | ||
<domain includeSubdomains="true">zulip.com</domain> | ||
<trust-anchors><certificates src="system" /></trust-anchors> | ||
</domain-config> | ||
</network-security-config> | ||
<!-- Reference: https://developer.android.com/training/articles/security-config#FileFormat --> |