Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
793 views
in Technique[技术] by (71.8m points)

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

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.

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:

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...