B4J Question SSLHandshakeException: PKIX path building failed

tufanv

Expert
Licensed User
Longtime User
Hello

When I use old httputils2service and httpjob 's as modules (httputils2 v1.00 ) I dont get any errors while using

B4X:
Dim connection As HttpJob
    connection.Initialize("haberal",Me)
    connection.download("https://ctmobilesoft.com/dovizconnect.php?action=macosnewsal")

but when I use
jokhttputils when i request the above with ssl i get:

java sun.security.validator.validatorexception : PKIX path building failed error. is there any reason for this , am i doing stg wrong ?

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've tested it with the latest version of OkHttpUtils2 and with this code and it works properly:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://ctmobilesoft.com/dovizconnect.php?action=macosnewsal")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
I've tested it with the latest version of OkHttpUtils2 and with this code and it works properly:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://ctmobilesoft.com/dovizconnect.php?action=macosnewsal")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release
I will try again in the office with the latest version. Thx !
 
Upvote 0
Top