A DESCRIPTION OF THE REQUEST :
When trying to use SSL based connections typical error messages you might get are:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
this happens for URL that give no trouble at all if any browser is used that will lookup the certificates in the operating systems environment e.g. on OSX in the keystore.
The reason for the behavior is Oracle/Javas decision to have its own way of checking certificates so that a redundant handling of certificates is asked for.
The current solution is far to complicated and needs lots of setup steps. Its almost impossible to deploy an application with SSL support to a client if e.g. client certificates need to be supported.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Do as the romans (browsers) do. Just use the libaries of the operating system e.g. OpenSSL.
There is some implementation of keystores that are specific to the java environment and have their own toolset.
---------- BEGIN SOURCE ----------
access any SSL based URL.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Do not use Java. Do not use SSL security.