title: Retrofit HTTPS connection not working in Android
body: <p>I am getting a trust anchor error. I tried <a href="http://www.snip2code.com/Snippet/25364/Get-OkHttpClient-which-ignores-all-SSL-e" rel="nofollow noreferrer">http://www.snip2code.com/Snippet/25364/Get-OkHttpClient-which-ignores-all-SSL-e</a> for the https connection but this returns below error.</p>
  
  <pre><code> D/Retrofit﹕ javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
          at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328)
  </code></pre>