network_security_config.xml (1048B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Network policy for the "sim" build type only (simulator/, never published). 4 5 It is src/main's policy — cleartext for the name "localhost" and nothing else 6 — plus one extra trust anchor: the simulator's own CA, so the emulator can be 7 pointed at a TLS front end answering for the hostnames the app hard-codes 8 (https://taldir.gnunet.org, https://mailbox.gnunet.org) without patching 9 those URLs out of the code under test. See simulator/tls/README.md; the 10 matching private key is generated per installation and is not in the tree, 11 so this certificate on its own authorises nobody. 12 --> 13 <network-security-config> 14 <base-config> 15 <trust-anchors> 16 <certificates src="system" /> 17 <certificates src="user" /> 18 <certificates src="@raw/sim_ca" /> 19 </trust-anchors> 20 </base-config> 21 <domain-config cleartextTrafficPermitted="true"> 22 <domain includeSubdomains="true">localhost</domain> 23 </domain-config> 24 </network-security-config>