0

当尝试在我的 Windows 机器上建立 http 连接时,我在 httpclient.execute(httpGet, responseHandler); 上得到以下异常;

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticate
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)

我想我需要在 Windows 机器上的 java 或浏览器中添加一些证书,但是我从哪里得到它们呢?为什么它在 linux 上运行良好?

4

1 回答 1

0

该博客可能会有所帮助:http: //javaskeleton.blogspot.com/2010/07/avoiding-peer-not-authenticated-with.html

于 2012-07-20T15:17:24.433 回答