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

CertPathValidatorException Accessing Site with AWS ACM cert

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.
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();
 

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