4

所以我有一些与外部休息服务接口的代码。我将其 SSL 证书导入到我的 java 密钥库中,并且我的单元测试工作正常……而我正在使用 intellij。我团队中的其他成员使用 eclipse,即使证书在他们的密钥库中,他们也会得到可怕的peer not authenticated异常。

即使在我的计算机上,所有证书都在我的密钥库中,它也可以在 intellij 中使用,但不能在 eclipse 中使用。

我出色的 Google 技能让我在这方面失败了。帮助我,StackOverflow,你是我唯一的希望。

日食堆栈跟踪

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:126)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:437)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
4

0 回答 0