Android Question Trust anchor for certification path not found.

hatzisn

Well-Known Member
Licensed User
Hi everybody,

I am facing a problem with accessing a site in Android device and emulator.
I get the following error:
javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:Trust anchor for certification path not found.

I use the OkHttp and OkHttpUtils2 libraries.

This is my code:
B4X:
Sub GetHTML()
    ProgressDialogShow("Downloading verb conjugation.")
    Dim hj As HttpJob
    hj.Initialize("MainHTML", Me)
    hj.Download("https://www.italian-verbs.com/italian-verbs/conjugation.php?parola=" & txtVerb.Text)
End Sub
I also checked the SSL certificate of the site in http://www.digicert.com/help and here is what I get:



Is the "SSL Certificate is not trusted" the reason for the error I get?
If yes is there a workaround?
 
Top