Hi Jasintha,

Import the SSL Cert from the remote server to your trust store. It should
solve this issue.

On Thursday, 7 April 2016, Jasintha Dasanayake <[email protected]> wrote:

> Hi Devs
>
>  trying to connect to a remote server using SSL connection through an
> eclipse plugin and making use of the following code to set the trust store
> path :
>
> System.setProperty("javax.net.ssl.trustStore", path);
>
>
>
>      System.setProperty("javax.net.ssl.trustStorePassword",
> "trustorepassword");
>
>
>
>      System.setProperty("javax.net.ssl.trustStoreType","JKS");
>
>
> I am getting the following exception
>
>
>     *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.*
>
>
> Furthermore this plugin worked in eclipse Luna (4.4) without any issue ,
> so  any thought please ?
>
> --
>
> *Jasintha Dasanayake*
>
> *Senior Software EngineerWSO2 Inc. | http://wso2.com
> <http://wso2.com/>lean . enterprise . middleware*
>
>
> *mobile :- 0711368118*
>


-- 
Sent from Gmail Mobile for IPhone
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to