Android 7.0 SSL Trust anchor for certification path not found.

来源:互联网 发布:淘宝达人的个人简介 编辑:程序博客网 时间:2024/06/07 16:49

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

0 0
原创粉丝点击