Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » CertPathBuilderException from Plugin
CertPathBuilderException from Plugin [message #594049] Fri, 27 March 2009 01:21
Chris is currently offline ChrisFriend
Messages: 4
Registered: July 2009
Junior Member
I'm developing an Eclipse plugin that makes a REST call over https. The
SSL certificate on the server is not valid, changes frequently, and and
will remain that way. To compensate, I have added the following code,
which works when I run test cases (outside of the Eclipse plugin

Security.addProvider(new MyProvider());
Security.setProperty("ssl.TrustManagerFactory.algorithm",TrustAllCertificates ");

When I run the code as an eclipse plugin, I get I long stack trace, at the
bottom of which is:
Caused by: unable to find
valid certification path to requested target
at a:215)
... 31 more

The stack trace is the same as the one I get when I don't include the
compensating code and run as a test. Why am I getting different results in
the plugin environment? Are there any workarounds?
Previous Topic:How to attach the debugger without the user interface
Next Topic:Class Cast Exception in plugin
Goto Forum:

Current Time: Sat Jun 12 12:29:41 GMT 2021

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

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

Back to the top