I am trying to use Certificate Pinning. I have my application downloading files using DownloadManager
. I was wondering if I use DownloadManager
will that support the certificate that I have pinned in android manifest and network_security_config.xml
. If not what download method would use the certificate pinning
this is my network-security-config
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config>
<domain includeSubdomains="true">example.com</domain>
<pin-set>
<pin digest="SHA-256">7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=</pin>
<!-- backup pin -->
<pin digest="SHA-256">fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=</pin>
</pin-set>
</domain-config>
</network-security-config>
These digests aren't real.