0

I´m trying to install some software in Eclipse 2018-12 via its Marketplace. On trying to do so, I keep getting the same error:

Unable to read repository at http://download.eclipse.org/releases/2018-12.
Unable to read repository at https://download.eclipse.org/technology/epp/packages/2018-12/content.xml.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The company I am currently working with has a proxy active. If that`s what causes this issue (which I am not sure of), how would I bypass it in Eclipse? I tried a manual Network connection with a proxy bypass, but to no avail.

Any help or ideas?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
BFR
  • 85
  • 1
  • 8
  • Are you able to access the URLs with a web browser? What are your settings in _Window > Preferences: General > Network Connections_? With which Java exactly do you run Eclipse? – howlger Aug 20 '19 at 10:18
  • you need to add root ca certificate to java cacerts which eclipse is using or you explicitly set jdk into eclipse. Use [guide1](https://stackoverflow.com/a/57713628/1802348) ,[guide2](https://stackoverflow.com/a/40757655/1802348) ,[guide3](https://stackoverflow.com/a/39075967/1802348) – positivecrux Aug 29 '19 at 15:51

2 Answers2

0

I tried many solutions, but found it is available at https://confluence.atlassian.com/kb/how-to-import-a-public-ssl-certificate-into-a-jvm-867025849.html and solved my problem.

In that case, I used the KeyStore Explorer tool and generated the certificate.

  1. Download KeyStore Explorer and Install
  2. Open the application (Run as administrator) and in Examine => Examine SSL
  3. On the Connection Settings screen => SSL Host: google.com / SSL Port: 443 => Click "OK"
  4. In the certificate, click on "PEM" and "Export".
  5. Save as "public.crt"
  6. Click the "Open an existing KeyStore" button => C:\Program Files\Java\jdk1.8.0_261\jre\ lib\security\cacerts (JDK)
  7. Enter the password: changeit
  8. In Tools => Import trusted certificate => Select the public.crt file => Click "OK"
  9. Save the "cacerts" file.
  10. Repeat steps 6 through 9 for the JRE (C:\Program Files\Java\jre1.8.0_261\lib\security\ cacerts)
  11. Restart your PC.

References:

0

If you are using a https url, change it to http url (just remove 's') and try. In my case 'https://dl.bintray.com/fabioz/pydev/8.0.0/' was throwing cert error, but changing it to 'http://dl.bintray.com/fabioz/pydev/8.0.0/' worked fine.

gannu_lee
  • 283
  • 3
  • 10