PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification ?
baibai 提问于:2017-05-08
0 0

HttpClient请求https是出错:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
  • 所有回答
bluesky 回答于:2017-06-04
0 0

你查下的JDK版本是不是太低了

jdk1.6.0_02是会出现这个问题

升级到1.6.0_21试下

我来回答    PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification ?