Cannot connect via HTTPS in Java app on MacOSX (Certificate validation issue)

Posted by johnnyx on Stack Overflow See other posts from Stack Overflow or by johnnyx
Published on 2012-10-04T15:36:09Z Indexed on 2012/10/04 15:37 UTC
Read the original article Hit count: 220

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about osx