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 Go to next message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
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,
Re: Eclipse does not accept https certificate [message #1819624 is a reply to message #1694499] Sat, 18 January 2020 18:47 Go to previous message
abid mohamed is currently offline abid mohamedFriend
Messages: 2
Registered: January 2020
Junior Member
Hi my friend
did you fix your issue ?
Previous Topic:Should EvaluationReference execute PropertyChangeEvent within runExternalCode?
Next Topic:How to add Filters to Navigator view ?
Goto Forum:

Current Time: Sun Jun 04 10:37:33 GMT 2023

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

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

Back to the top