B4J Question java.net.SocketException: Connection reset

EJLib

Member
Licensed User
Longtime User
When using jOkHttpUtils2 with an https:// url, I get this error: "java.net.SocketException: Connection reset"

Switching to jHttpUtils2 with the same url, the error is: "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated"

The URL works when placed into a browser window.

The Android forums indicate that initializing OkHttpClient with InitializeAcceptAll may help.
https://www.b4x.com/android/forum/threads/jrdc2-trust-anchor-for-certification-path-not-found.89331/

Is there a way to initialize jOkHttpUtils2 with "accept all"?

Thanks,
Eric
 
Top