• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps "Not trusted sever certificate" Error

Hi, I'm currently trying to write a basic program that can parse json code which is generated by a php file saved on a server. The server is a HTTPS sever and I'm getting the following error.

I know where to get the ssl certificate for the server but even with it installed on my machine (on which i test the code on an emulator) , I still get the following error:

javax.net.ssl.sslexception: not trusted server certificate

Is there any way I can get the app to trust the sever specifically or get the app to trust all servers regardless of certificates.

(Whichever would be easier)
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones