Android java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。-4.2

时间:2019-03-22 08:12:10

标签: android ssl ssl-certificate android-webservice

我仅在4.2下面临以下问题。从6.0开始可以正常工作。我正在使用kso​​ap进行网络通话。

  

System.err:javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。           在org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:381)           在libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:209)           在libcore.net.http.HttpsURLConnectionImpl $ HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)           在libcore.net.http.HttpsURLConnectionImpl $ HttpsEngine.connect(HttpsURLConnectionImpl.java:433)           在libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)           在libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)           在libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:81)           在libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)           在libcore.net.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:281)

如何在KSOAP中设置证书以进行呼叫?请帮助我解决这个问题。

0 个答案:

没有答案