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