问题
My backend server can be accessed only by https. The certificate was bought/configured from a certificate authority (CA).
When I am trying to access my API through retrofit, I am getting error
W/System.err: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
The certificate which is configured on backend, I can not just put into my app. Then everyone using my app, can hack into and steal it.
What to do?
回答1:
Problem was that on backend Intermediate certificate was not. So this problem has been solved. Here is more info https://github.com/kubernetes/ingress-nginx/issues/6398
来源:https://stackoverflow.com/questions/64600587/android-trust-anchor-for-certification-path-not-found-my-backend-have-not-self