问题:报错
Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Cannot complete request to http://marketplace.eclipse.org/catalogs/api/p: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
PKIX path building failed:
1、下载证书
打开网站https://marketplace.eclipse.org/
2、导入证书
注意:这里一定在eclpise使用的jdk导入,要不然不起作用
进入jdk的目录:
D:\study\ProgramFile\Java\jdk1.8.0_281\jre\lib\security
在命令界面输入下面:
timld998in
123456
密码默认为:changeit
keytool -import -alias marketplace -keystore cacerts -file D:/study/ProgramFile/Java/sslFile/eclipse.org.crt -validity 3600
重启eclipse就可以成功打开了。
下面给出一些验证:
1、查看eclipse使用的jdk
查看eclipse.ini
2、查看文件是否导入成功
查看对应的文件修改日期
当然直接查密码库
keytool -list -v -keystore cacerts -storepass
keytool -list -keystore cacerts -alias marketplace
删除:keytool -delete -alias marketplace -keystore cacerts