Eclipse Mars system.setproperty javax.net.ssh.truststore not working anymore [message #1709588] |
Tue, 29 September 2015 08:32  |
Eclipse User |
|
|
|
I am trying to connect to a web server using SSL connection through an eclipse plugin developed by me.Since the server uses a self signed certificate , I am making use of the following code to set the trust store path :
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
System.setProperty("javax.net.ssl.trustStore", keyStorePath);
System.setProperty("javax.net.ssl.trustStorePassword", "sibendu");
However while making a connection to the server , I get the following error :
*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.*
But if I provide the above system properties as arguments before firing up the eclipse plugin as an eclipse application, the connection is established and I don't get such errors any more.
I am wondering whether Mars is ignoring the setting up of javax.net.ssl.trustStore during runtime because I ran the same plugin in Luna and I did not face any issues.
Any advice?
Thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.03751 seconds