当前位置: 首页 > 知识库问答 >
问题:

如何在eclipse Neon上安装aws工具包时解决连接问题?

景才英
2023-03-14

我在一家公司,需要设置代理才能连接到互联网。代理设置可以,因为我可以连接到其他网站,例如Neon-http://download.eclipse.org/releases/neon,但不能http://aws.amazon.com/eclipse.

错误消息是:

无法在https://aws.amazon.com/eclipse/content.xml.读取存储库无法在https://aws.amazon.com/eclipse/content.xml.sun.security.validator.ValidatorException读取存储库:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径。

具体栈是:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 無法找到有效的證明路徑到 sun.security.ssl.alerts.getSSLException(Unknown Source) at sun.security.sslsocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) atsun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.sslsocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) atsun.security.ssl.sslsocketImpl.startHandshake(Unknown Source) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:554) at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:435) at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:216) at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:394) at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:814) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:615) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) atorg.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263) at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Cause by: sun.security.validator.ValidatorException: PKIX路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法在 sun.security.validator.pKIXValidator.doBuild(Unknown Source) at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at sun.security.validator.Validator.Validator.validator.validator.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) atsun.security.ssl.X509TrustManagerImpl.checkServerTrusted(未知来源) ...20 更多原因: sun.security.provider.certpath.SunCertPathBuilderException: 无法在 sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source) at sun.security.provider.certpath.certpath.sun.security.engineBuild(Unknown Source) at java.security.cert.cert.build(Unknown Source) 找到有效的认证路径。另外 26

共有3个答案

洪飞鸿
2023-03-14

只需在eclipse中执行以下步骤,1)转到windows-

然后尝试在 eclipse 中安装软件并搜索 http://aws.amazon.com/eclipse。它会起作用。

晋天逸
2023-03-14

去月食-

商夜洛
2023-03-14

这是因为java无法识别根证书颁发机构(CA)SSL证书的https://aws.amazon.com.

解决方案是将该证书添加到java cacerts文件中,以便它被永久接受。

第1步:获取https://aws.amazon.com根证书

CHROME浏览器

  1. 打开https://aws.amazon.com
  2. 从上下文菜单中选择检查(右键单击页面)并导航到安全选项卡
  3. 点击查看证书
  4. 单击层次结构上最上面的证书并确认它后面有根CA短语。
  5. 拖放您在桌面上看到的书面证书的图像。

火狐浏览器

  1. 打开https://aws.amazon.com
  2. 点击绿色锁按钮“显示证书”
  3. 选项卡“详细信息”、“导出”

就是这样!您获得了根证书!

步骤2:将该证书添加到java cacerts文件中。

  1. 在jre bin文件夹中使用keytool.exe。
  2. 启动以下命令以将您的证书放入cacerts文件中

keytools-导入-no的提示-信任Cacerts-别名ALIASNAME-文件 /PATH/TO/YOUR/DESKTOP/CertificateName.cer-keystore /PATH/TO/YOUR/JDK/jre/lib/security/cacerts-store pass更改

就是这样!你的问题解决了。

请注意

    < li >务必确认给出此PKIX错误的jre(部署后eclipse或您的应用程序使用的JRE)是您执行步骤2的地方。如果你想尝试另一个jre问题会是什么样子。
 类似资料:
  • 当我在fedora上运行xampp时,此错误显示在应用程序日志中 正在启动Apache Web服务器。。。退出代码:8 Stdout:apache配置测试失败,在/opt/lampp/etc/httpd的第522行中止Stderr:httpd:Syntax错误。conf:opt/lampp/etc/extra/httpd xampp的第10行出现语法错误。conf:无法加载模块/libphp7。所

  • 我想在我的项目上安装maatwebsite/excel软件包,但在linux上安装这些软件包时出错,当我运行:composer update/install或composer require maatwebsite/excel时,我发现了此错误

  • 我正在尝试在RHEL7.x上安装开源的累加器。我有两GB的交换空间。我已经安装了Java1.8、Hadoop3和Zookeeper。我已经运行了累加1.9.2的bootstrap_config.sh脚本。 我使用累加bootstrap_config.sh脚本配置Hadoop版本3。如何使“/bin/accumulo-1.9.2/bin/accumulo-init”工作?

  • 在 Ubuntu 系统中,使用了源码的方式安装了一个软件,因为某些特性需要源码安装。该软件有一些第三方模块,如果使用 apt-get 的方式安装第三方模块,会提示需要该软件安装后才可以安装这些第三方模块,也就是 apt-get 的方式是无法知道通过源码方式已经安装了的软件的。 现在安装第三方模块也采用了源码方式进行安装,但是这样比较麻烦,有没有更好的方式来安装这些第三方模块?

  • 我正在尝试安装开源Jenkins的2.162版本。Jenkins成功地出现了,但是,当我去管理Jenkins->Manage插件时,我看到以下错误:

  • 问题内容: 我发现一个有4年历史的项目应该在lambda上安装phantomjs,但是我做错了什么,或者自从创建回购以来事情已经发生了变化,并且不再起作用。克隆并部署此存储库时,尝试运行phantomjs时出现此错误: 如果我使用最新的linux二进制文件而不是此仓库附带的二进制文件,则会收到有关另一个.so文件丢失的不同但相似的错误。 对于上下文,我要安装phantomjs的原因是因为我想在我的