Android 7.0 SSL Trust anchor for certification path not found.

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

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

修改方法:java

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

demo:http://download.csdn.net/detail/zdy10326621/9717875服务器

参考资料:

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

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