Reputation: 11
i am trying to port an existing project to Android and am quite new to the platform. The communication is done using Ksoap2, a soap library.
When i try to communicate with the server using https i get a SSLHandshakeException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Is there a way around this? And, if yes, where do i have to start?
Upvotes: 1
Views: 7473
Reputation: 4207
Either make sure the site has a proper certificate, or use a TrustManager that accepts any certificate.
For the latter, see How to handle invalid SSL certificates with Apache HttpClient?
Upvotes: 1