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

标签 android ssl certificate

我正在 Android 上开发一个客户端应用程序,它连接到我在负载均衡器后面的 AWS 上的服务器,我已经在 GoDaddy 上创建了一个 SSL 证书并将其添加到负载均衡器上。

浏览器上一切正常,它可以识别证书,但是当我尝试使用 Android 调用 API 时出现此异常:

09-18 01:18:55.187: W/System.err(32585): Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

我发现一些讨论说要在应用程序上添加证书,但是没有办法在证书服务器端修复它吗?这不是证书的问题吗?

最佳答案

我通过使用正确的组织单位名称和通用名称创建一个新的 .csr 来修复它

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

相关文章:

java - 如何使用 iText 在 (x,y) 位置的文档中将 PdfPTable 添加到 HTML 字符串?

java - 我尝试从 POSTMAN API 工作正常,但从我的 Java 代码不行?

ssl - 在客户端和服务器(非 HTTPS)之间使用自定义协议(protocol)时是否需要 SSL 证书?

java - 如何获取java的X509Certificate中的策略标识符和基本约束的主体类型

ssl - 错误:ssl3_get_server_certificate:使用自签名证书时证书验证失败

安卓动画库?

android - OnTouchListener 错误

java - 为 Windows Azure 生成证书

java - HSTS super Cookie 实现

ssl - 我可以复制 SSL 证书和证书吗