Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse does not accept https certificate
Eclipse does not accept https certificate [message #1694499] Tue, 05 May 2015 16:24
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 342
Registered: July 2015
Senior Member

I have a very strange issue with a https certificate and Eclipse. We are trying to provide a private p2 repository url over https, and we have a signed certificate for that site.

However, we have noticed that although the certificate seems to be ok for browsers, asking p2 to install the software from there fails because of certificate issues.

After some experimentation I have found a code snippet that can be used for testing https connections, and I have found, that the certificate works fine in standard Java applications, but does not work in Eclipse applications.

The Github gist shows this snippet: it opens a Java connection to an URL, and prints out the results, or exceptions. If I execute this file as a JUnit test, I get the expected outcome, while if I run as an Eclipse plug-in test, it does not accept our certificate with an exception: " unable to find valid certification path to requested target" (the whole trace is available from the linked gist).

My question is the following: how does Eclipse behave differently than a normal Java application (with default java certificate store and default Eclipse installation)? Is there something wrong with the certificate available from (e.g. is it any problem that it is a wildcard certificate)?

I would be glad for any kind of help. Thanks,
Previous Topic:How to list files in a bundleresource:// URL?
Next Topic:Possible Memory Leak in WorkbenchStatusDialogManagerImpl
Goto Forum:

Current Time: Wed Jul 18 01:08:49 GMT 2018

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

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

Back to the top