fluttercommunity / flutter_downloader

Flutter Downloader - A plugin for creating and managing download tasks.
https://pub.dev/packages/flutter_downloader
BSD 3-Clause "New" or "Revised" License
907 stars 511 forks source link

Can we override flutter downloader to download from URLs with self-signed certificates to avoid errors #970

Closed TomZiW closed 1 month ago

TomZiW commented 1 month ago

Describe the bug This is less of a bug and more of a question in if we can override flutter downloader to download from URLs that have self-signed certificates to avoid security related errors. Refer to this link where we can override the dart:http package.

The errors I am currently getting are below:

W/System.err( 5037): javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
W/System.err( 5037):    at com.android.org.conscrypt.SSLUtils.toSSLHandshakeException(SSLUtils.java:356)