Reputation: 31
PFA. Unable to open eclipse market place with error:
MarketplaceDiscoveryStrategy failed with an error
Cannot complete request to https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.19:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
How to resolve it?
Upvotes: 3
Views: 7537
Reputation: 1204
I had the same error when accessing the Eclipse Marketplace, I just had to install the certificate on my Local Machine according to the Eclipse Marketplace (Path) where the Eclipse had Failed then MAKE SURE TO REBOOT YOUR PC ONCE IT IS INSTALLED.
Following are the steps to perform this task: I find it easier to use the browser "Edge" as an example to get the certificate from the url had failed.
Upvotes: 1
Reputation: 1002
In my case, I could not open Eclipse Marketplace and got the same error reported in the question of this thread. I was able to solve this problem by getting instructions from the admin since I am connected using VPN. If I disconnect the VPN, it will work without any problem. I am using Eclipse Version: 2022-09 (4.25.0) - Build id: 20220908-1902
.
<user-home>\.certificate\my-certs.pem
. If you have more than one certificate, combine the definitions in this file my-cert.pem
. In my case I was provided two certificates, they are XXXROOTCA
and XXXCERTnn
.file1.crt
and file2.crt
.keytool
to import the certificates:%JAVA_HOME%\bin\keytool -import -alias XXXROOTCA -file %HOME%\.certificates\file1.crt -cacerts
%JAVA_HOME%\bin\keytool -import -alias XXXCERTnn -file %HOME%\.certificates\file2.crt -cacerts
Note: Make sure to associate the certificate alias with the correct file in the above command lines.
3. You may have to pass the password for the above command lines. Add the parameter -storepass changeit
if the password is still changeit
and you didn't change it which is the default.
setx NODE_EXTRA_CA_CERTS %HOME%\.certificates\my-certs.pem
Now you should be able to open Eclipse Marketplace.
Upvotes: 0
Reputation: 31
I was using the client machine and this error is resolved once I added the windows->preference->N/w connection in General settings--> Made the provider manual and edited http and https with the client added authentication and it worked.
Upvotes: 0