Android 7.0 SSL Trust anchor for certification path not found.

1.服务器提供的两个BKS 文件Android 7.0  证书验证可以正确通过,但是在7.0的系统上会出现

.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

修改方法:

public class EasyX509TrustManager implements X509TrustManager {
 http://blog.synyx.de/2010/06/android-and-self-signed-ssl-certificates/
  

demo:http://download.csdn.net/detail/zdy10326621/9717875

参考资料:

http://blog.synyx.de/2010/06/android-and-self-signed-ssl-certificates/

https://developer.android.google.cn/training/articles/security-ssl.html

你可能感兴趣的:(Android 7.0 SSL Trust anchor for certification path not found.)