javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:在android 6及更高版本中

时间:2019-02-05 06:39:00

标签: java android

我在Android 6及更高版本的设备中遇到问题。我的代码可以在所有低于android版本6的android设备上正常工作。

For SSLSocketFactory Code Please see the attached Image

这里是日志:

  

W / System.err:由:java.security.cert.CertificateException:   java.security.cert.CertPathValidatorException:的信任锚   找不到认证路径。           在com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:563)           在com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:444)           在com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:401)           在com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:375)           在com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:304)           在android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)           在android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88)           在com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:178)           在com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:596)           在com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(本机方法)           在com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:357)         ...还有23

0 个答案:

没有答案