network_security_config.xml (1040B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Network policy for the "sim" build type only (pos-simulator/, never 4 published). 5 6 The terminal hard-codes https:// for the merchant portal URL. Both the login 7 form and the taler-pos:// setup URI build the base URL with that scheme and 8 nothing else, so a merchant backend the harness controls has to answer TLS. 9 The extra trust anchor is the simulator's own CA, which fronts the mock 10 backend on https://localhost:[port]. See pos-simulator/tls/; the matching 11 private key is generated per installation and is not in the tree, so this 12 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>