user3690467
user3690467

Reputation: 3417

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

Upvotes: 1

Views: 2130

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007554

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.

Upvotes: 1

Related Questions