My web app needs to call a web service. I coded this using URLConnection. It all works fine in debug mode on my Mac.
However it doesn’t work when deployed to my AWS Lightsail server Amazon Linux 1 (Centos 6) with LibSoup installed. It fails with an error number of 6 “The SSL certificate is not trusted”.
When I test the endpoint using curl from the server it reports “SSL certificate verify ok” and I know that thousands of users are connecting to this end point all the time without issue.
I figure that I have a configuration problem on my server which is causing a problem for URLConnection. I’m fresh out of ideas at this point does anybody have a suggestion?