I'm trying to hit a web service on our site which uses an AWS issued cert. The site comes up fine with a browser on the phone but the app is getting "java.security.cert.CertPAthValidatorException: Trust anchor for certification path not found."
This code worked fine with Android 9.
Has anyone else ran into this issue? My iOS app has no problem hitting the web service only my Android java code.
Code below.
This code worked fine with Android 9.
Has anyone else ran into this issue? My iOS app has no problem hitting the web service only my Android java code.
Code below.
Java:
URLConnection connection = null;
BufferedReader reader = null;
try {
URL url = new URL(params[0]);
//connection = (HttpURLConnection) url.openConnection();
connection = url.openConnection();
//connection.connect();
InputStream stream = connection.getInputStream();