android Trust anchor for certification path not found. My backend have not self assigned certificate. What to do?
问题 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: