我正在 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/