Android 异步 http - java.security.cert.CertPathValidatorException : Trust anchor for certification path not found

标签 android ssl android-async-http

我使用 async-http 库,当我们的服务器开始使用 https 时,我收到了这个错误:

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

如何打开忽略证书检查(我们的证书尚未完成)。

最佳答案

查看这篇文章 https://developer.android.com/training/articles/security-ssl.html#HttpsExample

  1. 颁发服务器证书的 CA 未知
  2. 服务器证书不是由 CA 签名的,而是自签名的
  3. 服务器配置缺少中间 CA

关于Android 异步 http - java.security.cert.CertPathValidatorException : Trust anchor for certification path not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37522391/

相关文章:

Android - LoopJ AndroidAsyncHttp - 无 POST 参数

ssl - wolfssl SendClientKeyExchange 失败

qt - SSL。没有 OPENSSL_Applink

android - onSuccess - 异步 Http 客户端

javascript - React-Native Android 硬件后退按钮单击时出错 "Undefined is not a function(evaluating ' _this2.close( )') "

tomcat - 通过LDAP SSL的Active Directory-开发环境与Tomcat-Grails Web应用

android - 如何等待 IntentService 完成其任务

java - 行尾,FileWriter\n

android - 在没有服务器的情况下在 2 部安卓手机之间传输数据?

android - Glide 在滚动之前不加载图像或根本不加载