Java SSL connection problem

If you are suffering from the dreaded message

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

and you have installed the necessary certificates in your keystore.

Try passing

-Djavax.net.debug=ssl

to your java runtime. You will now get *a lot* of details about the keystore which is used, the certificates which are available and the SSL negotiation.

This should help to figure out what exactly is going wrong (like a hostname match problem or problem caused by SNI or something else).

Leave a Reply

Your email address will not be published. Required fields are marked *

question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen

*