TachibanaGeneralLaboratories / download-navi

Free and Open Source software download manager
GNU General Public License v3.0
812 stars 86 forks source link

Download failure for retrieve certification from specific website #212

Closed KrasnayaPloshchad closed 2 years ago

KrasnayaPloshchad commented 2 years ago

I just try to download https://piasecki.com/wp-content/uploads/2021/01/piasecki_transparent.png and then I receive the following IO error message on screen:

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Is there any way to work around?

proninyaroslav commented 2 years ago

I tried to download and everything is fine. This means that your device doesn't have a root certificate. Navi doesn't have an option to disable SSL certificate verification as it's dangerous.

Kita2345 commented 2 years ago

Error occurred on Android 5

proninyaroslav commented 2 years ago

This site uses Let's Encrypt certificate, which no longer works on Android 5 and below https://scotthelme.co.uk/lets-encrypt-old-root-expiration/. Navi uses the system certificate store.

Kita2345 commented 2 years ago

Try this https://greenscene.co.id/wp-content/uploads/2021/05/Arlong-696x497.jpg

proninyaroslav commented 2 years ago

It also uses Let's Encrypt certificate.

Kita2345 commented 2 years ago

I tried to download and everything is fine on Android 5

proninyaroslav commented 2 years ago

This problem may not be with all Android 5 devices.

proninyaroslav commented 2 years ago

Similar to https://github.com/TachibanaGeneralLaboratories/download-navi/issues/18

Kita2345 commented 2 years ago

Hi, This problem is caused by not supporting TLS1.3 certificate. But since TLS1.3 is provided from Android 10 or higher, it seems that the problem will still occur in Android 9 and lower versions.