Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » SSL through RCP application
icon8.gif  SSL through RCP application [message #777472] Tue, 10 January 2012 15:12
paul berzatti is currently offline paul berzatti
Messages: 3
Registered: January 2012
Junior Member
I have an rcp application that connects to a webservice through ssl.
If I set the truststore path as a VM argument it works fine.

-Djavax.net.ssl.trustStore=C:\paul\certificates\trust.jks -Djavax.net.ssl.trustStorePassword=xxxx

However, in my context, the truststore path is known only at runtime and set in the code using:

String path = "C:\\some\\path\\trust.jks";
System.setProperty("javax.net.ssl.trustStore", path)


The latter approach doesn't work. I am getting the following error:

Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: //websevice.sever.fr:8181/TestService/Test?wsdl. It failed with:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

It can't be a certificate problem as I tested the trust.jks file and it works fine from a normal java class but not from an eclipse plugin.

Any idea why the behavior is different? It seems in a RCP application setting system properties is done differently or not possible.

Thanks for your help.



[Updated on: Tue, 10 January 2012 15:14]

Report message to a moderator

Previous Topic:How do I get a menu item to refresh?
Next Topic:Row index concept
Goto Forum:
  


Current Time: Wed Oct 22 05:03:35 GMT 2014

Powered by FUDForum. Page generated in 0.02855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software