CertPathValidatorException在android 7中找不到证书路径的信任锚

时间:2017-06-19 12:47:58

标签: android sslhandshakeexception android-7.0-nougat

我正在

  

“javax.net.ssl.SSLHandshakeException:   java.security.cert.CertPathValidatorException:信任锚   未找到证书路径。                                                                                                javax.net.ssl.SSLHandshakeException:   java.security.cert.CertPathValidatorException:信任锚   未找到证书路径。                                                                                                    在   com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:361)                                                                                                    在com.android.okhttp.Connection.connectTls(Connection.java:235)                                                                                                    在com.android.okhttp.Connection.connectSocket(Connection.java:199)                                                                                                    在com.android.okhttp.Connection.connect(Connection.java:172)                                                                                                    在   com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)                                                                                                    在   com.android.okhttp.OkHttpClient $ 1.connectAndSetOwner(OkHttpClient.java:130)                                                                                                    在   com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)                                                                                                    在   com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)                                                                                                    在   com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)                                                                                                    在   com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)                                                                                                    在   com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)                                                                                                    在   com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)                                                                                                    在   com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)“

在android N中执行urlConnection.getOutputStream()行时出现异常。请有人帮忙

0 个答案:

没有答案