java.security.cert.CertPathValidatorException:找不到证书路径信任锚 [英] java.security.cert.CertPathValidatorException: Trust anchor for certification path not found

查看:9474
本文介绍了java.security.cert.CertPathValidatorException:找不到证书路径信任锚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发在Android客户端应用程序,它连接到我的服务器是在负载平衡器后面的AWS,我已经创造了在GoDaddy的SSL证书,并把它添加负载平衡器。

I'm developing a client app on Android which connects to my server that is on AWS behind a Load balancer, i've created an SSL certificate on GoDaddy and added it on the load balancer.

一切都很顺利的浏览器,它承认的证书,但是当我尝试调用与Android API的我得到这个异​​常:

Everything is going well on the browser, it recognize the certificate, but when I try to call the APIs with Android i got this exception:

1月九日至18号:18:55.187:W / System.err的(32585):产生的原因:   java.security.cert.CertPathValidatorException:为信任锚   找不到证书路径。

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

我已经找到了一些讨论说谁上添加应用程序的证书,但有没有办法解决它的证书服务器端?是不是一个问题的证书?

I've found some discussion who said to add the certificate on the app, but is there no way to fix it on the certificate server side? is it not an issue with the cert?

推荐答案

我固定它通过创建一个新的.csr文件与正确的组织单位名称和通用名称

I fixed it by creating a new .csr with the right Organizational Unit Name and Common Name

这篇关于java.security.cert.CertPathValidatorException:找不到证书路径信任锚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆