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?
I fixed it by creating a new .csr with the right Organizational Unit Name and Common Name
I would say that official Android doc will be your best friend in this situation. See here: http://developer.android.com/training/articles/security-ssl.html#UnknownCa
And this is what they say, which is both solving the issue and very smart at the same time:
This bizarre error message means that the trust store you specified was not found.