Android Question HTTPS Get/Post request error : Trust anchor for certification path not found [Solved]

dibesw

Active Member
Licensed User
Longtime User
HI,
I have this error for read https server

https.jpg


B4X:
Sub controlla_user
    ProgressDialogShow("Attendere...")
    ServerUrl ="https://www.xxxxxxxxxxx.info/xxxxxxxxx/prconnectdbxandroid.php"
    Qry="Select pr99puntovendita FROM pr99utenti where pr99username=" & utente.Text & " and pr99password=" & password.Text
    jobx.Initialize("Job0", Me)
    jobx.PostString(ServerUrl, Qry)
End Sub

This error is from Android 9.1;
Android 8 and 6 works well

I read this post
but the solution doesn't work
My OkHttpUtils2 library is 2.82
and I tried to download the attached one too
 

drgottjr

Expert
Licensed User
Longtime User
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Upvote 0
Top