SSLHandshakeException

Halo,

I’m building a mobile app (Android). Until last I tried on device (last week), I had no problem connecting to the php files from the device.
However, just today when I tested on device again, on 1 of my phone (Samsung S3), I’m getting this:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Connecting from PC or my other device works fine.
What could possibly be the problem?

Cheers

Hi there,

Make sure your certificate is not expired

It expires next year.
And it works in 1 device but not in another. So my older device can’t do the handshake. Is there a way around it?

Check this:
https://airbrake.io/blog/java/sslhandshakeexception

I’m not sure how to follow that (my application is with Unity, this one is java)
Reading somewhere else, someone suggested to try to open the url from just the browser of the device.
“This server could not prove that it is godplayspirits.000webhostapp.com; its security certificate is not trusted by your device’s operating system. This may be caused by a misconfiguration or an attacker intercepting your connection.”

I’ve been reading through several answers but just don’t know how to apply it in my case.
Apparently there is already the default certificate for the 000webhostapp, but how to validate it from the device?

Cheers

I have same problem,if you find solution let me know

i have solved it by changing url’s “https” to “http” inside app.

Hey all. i’m having the same problem since about a week ago. Im using a Unity developed app on my android device. It gives me this error in the logcat:

javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

The app has already been downloaded by users so I can’t just update the app easily and ask them to re-install. Is there a way to fix this on the server side? My web address is:

Thanks for any help

Everything is working…