我拥有由Geo Trust签名的https证书。所有浏览器都打开我的网站。我的应用通过https授权,大部分时间都可以。但有时用户无法连接并出现错误:SSLPeerUnverifiedException:未通过身份验证的对等凭证有效证书
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:572)
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:645)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at org.greencubes.downloader.Downloader.downloadFile(Unknown Source)
at org.greencubes.lil.Launcher.<init>(Unknown Source)
at org.greencubes.lil.Launcher.main(Unknown Source)
最后一位用户有Windows 7 x86和java 1.7_45u。它发生在随机操作系统和随机java更新,我不知道原因。有时候并没有发生,但通常如果用户有这样的错误没有任何帮助。
我无法将证书添加到用户的键盘上,因为这是用户应用程序。
目标网址是auth.greencubes.org(空响应必须返回403),您可以检查它。