Closed nehalshah50 closed 7 years ago
Hello,
The <pin-set>
tag should be under each <domain>
tag.
I have tried that and got :
com.datatheorem.android.trustkit.config.ConfigurationException: Could not parse network security policy file.
xml
<domain includeSubdomains=“true”>url
<pin-set>
<pin digest=“SHA-256">asdasd>
<pin digest=“SHA-256”>asdasda
</pin-set>
</domain>
<domain includeSubdomains=“true”>url2
<pin-set>
<pin digest=“SHA-256">asdasd>
<pin digest=“SHA-256”>asdasda
</pin-set>
</domain>
Any idea about it?
Found the problem.
Each
I have multiple domains under my domain config as both domain use the same certificates. It looks like TurstKit configuration only takes the last one in the list and doesn't create multiple DomainPinningPolicy for each `
`