【发布时间】:2013-08-14 11:43:02
【问题描述】:
我在录制 HTTPS 站点时遇到了一个奇怪的问题。 错误代码是:- javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at sun.security.ssl.SSLSessionImpl.getPeerCertificate s(Unknown Source) 在我参考了google中的不同帖子后尝试了以下操作:-
- 将 JDK 更新为 JDK7
- 以crt、der和p7c导出网站证书
- 已将证书导入 jre7/lib/security 的 cacerts
我正在选择 HTTP 4 客户端进行录制。 如果我使用 JAVA,错误代码是:-
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.ClientHandshaker.serverCertificat e(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(U nknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHands hake(Unknown Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unkn own Source) at sun.security.ssl.SSLSocketImpl.startHandshake(Unkn own Source) at I reinstalled JDK7.
The error code has now changed to :-
Secure Connection Failed
Cannot communicate securely with peer: no common encryption algorithm(s).
(Error code: ssl_error_no_cypher_overlap)
【问题讨论】: