Cannot connect via HTTPS in Java app on MacOSX (Certificate validation issue)
- by johnnyx
I have a java application that connects to a webservice over https.
The domain where i host the webservice has a valid Goddaddy issued SSL certificate.
The application works fine on Windows but on MacOSx i receive the following exception when attempting to connect to the webservice via https.
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I've tested it on two machines running Mac OS X 10.7.2 with the latest java runtime updates.
I understand this is usually a problem with self signed certificates that need to be added manually, but i have a valid Godaddy issued certificate.
In webbrowsers (safari & firefox) on mac os the certificate is recognized and seems ok. I even tried adding the certificate to the key chain manually like in the gase of a self signed one but to no result.