Android Question jRDC2 Trust anchor for certification path not found

Alexander Stolte

Well-Known Member
Licensed User
Hello,

I successfully implemented SSL on the jRDC2, with a trusted certificate, in the browser it works.

But if i want to connect from my App to the RDC, then comes this 2 Errors:

B4X:
ERROR9000: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found., Response:
did I forget something? i dont change something on my app, is this the issue? and if yes, what do I have to add to make it work?

Greetings
 

Erel

Administrator
Staff member
Licensed User
Are you using a self signed certificate? You can disable the certificate verification by initializing OkHttpClient with InitializeAcceptAll.
 

Erel

Administrator
Staff member
Licensed User
It is possible that the certificate is not recognized by the Android device.

Try it with InitializeAcceptAll.
 

Alexander Stolte

Well-Known Member
Licensed User
Ahh if i Call the Test Link from my Phone then comes this Error in the Browser:
Net::ERR_CERT_AUTHORITY_INVALID
 
Top