当尝试在我的 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 上运行良好?