Loading ImageURL failed: CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate

Hi there.

I have an flutter app connected to backendless. The android version is no more loading image from HTTPS URL (Dio flutter package). The get fails with error:
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate

I tested with this url and it fails: https://backendlessappcontent.com/5C39F8A2-8ABC-CE84-FF29-8469A9053200/573DC14B-2A4F-2174-FF69-D1D256397000/files/images/actus/illustration_immobilier.jpg

I tested with HTTPS urls outside of the backendlessappcontent.com domain and everything works.

I tested with HTTP (not SSL) within the backendlessappcontent.com domain and it works: as an example http://backendlessappcontent.com/5C39F8A2-8ABC-CE84-FF29-8469A9053200/573DC14B-2A4F-2174-FF69-D1D256397000/files/images/actus/illustration_immobilier.jpg works fine.

I do not face the issue on the iOS plateform.

Do you have any idea?

Hello,

I suspect it is an issue with cached certificate. I tested the HTTPS url on my computer and the image shows up just fine. The certificate is also reported as valid:

Hey Mark.

Actually it loads fine on my computer as well. Issue is with android only. Sounds like there is something that it does not like. On video files, same issue: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Thank you for the clarification. We’re looking into it.

Thanks. FYI openssl checks says:

openssl s_client -connect backendlessappcontent.com:443

Connecting to 216.87.89.90

CONNECTED(00000005)

depth=0 CN=*.backendlessappcontent.com

verify error:num=20:unable to get local issuer certificate

verify return:1

depth=0 CN=*.backendlessappcontent.com

verify error:num=21:unable to verify the first certificate

verify return:1

depth=0 CN=*.backendlessappcontent.com

verify return:1

We made the changes to address the problem. Please try again and let us know if it works for you now.

Regards,
Mark

1 Like

Great, works back as before. Thank you!!