0
我想知道这个错误的含义: javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath .SunCertPathBuilderException:无法找到有效的认证路径要求的目标空使用此代码的tomcat上的SSL的问题
当我尝试使用这种状态下此错误appers:
private HttpState setcookies(String msg){
HttpState state = new HttpState();
String[] splited;
String authToken=null;
String tokenSecret=null;
splited = msg.split(" ");
authToken=splited[1];
tokenSecret=splited[2];
org.apache.commons.httpclient.Cookie cookie = new org.apache.commons.httpclient.Cookie("winter.servebeer.com", EXTCOOKIE+"accessToken", authToken);
cookie.setPath("/OfeliaP");
state.addCookie(cookie);
cookie=new org.apache.commons.httpclient.Cookie("winter.servebeer.com", EXTCOOKIE+"tokenSecret", tokenSecret);
cookie.setPath("/OfeliaP");
state.addCookie(cookie);
return state;
}
这是SSL握手失败。无法验证证书。它在客户端还是服务器端失败? – Cratylus 2011-04-03 13:52:03
客户端。客户端试图在服务器上发帖 – Winter 2011-04-03 13:54:04
服务器发送什么样的证书?它在您的信任库中吗? – Cratylus 2011-04-03 13:59:40