Search code examples
androidsslandroid-download-manager

Android DownloadManager SSL Certificate Validation


I'm in the process of making an app that fetches certain data from a server. For now it is just a test server with an untrusted certificate (will fix that soon).

Now I'm able to disable SSL Certif Validation to fetch data from the server myself (with an HTTPSUrlConnection) but if I want to download a certain file from there using the download manager then the download manager spits out the expected "CertPathValidatorException".

My question is can I somehow force the DM to disable SSL Certif Validation, similar to what I did to fetch data?

Thank you for any help


Solution

  • Now I'm able to disable SSL Certif Validation to fetch data from the server myself

    Fortunately, people are starting to get sued for doing that in production apps.

    My question is can I somehow force the DM to disable SSL Certif Validation, similar to what I did to fetch data?

    No.