apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
598 stars 885 forks source link

Self-signed certificate #303

Closed walerio closed 3 years ago

walerio commented 3 years ago

Download function return java.security.cert.CertPathValidatorException with self-signed certificate. trustAllHosts is set to true

code example fileTransfer.download('url', 'localpath', okCallback, koCallback, true)

deryfebriantara commented 3 years ago

Download function return java.security.cert.CertPathValidatorException with self-signed certificate. trustAllHosts is set to true

code example fileTransfer.download('url', 'localpath', okCallback, koCallback, true)

I got the same issue with upload, on android device. have you solve the problem?

breautek commented 3 years ago

The ability to accept self-signed certs was intentionally removed on Android because having it in the code base will cause App store rejections in the code base.

See https://github.com/apache/cordova-plugin-file-transfer/pull/187 for more context.