title: Self-signed certificate and loopj for Android
body: <p>I'm trying to use <em><a href="http://loopj.com/android-async-http" rel="noreferrer">loopj</a></em> for making <em>async</em> <code>HTTP</code> requests. Works great, except when I try to access https site with self-signed cert. I get </p>
  
  <pre><code>javax.net.ssl.SSLPeerUnverifiedException: No peer certificate.
  </code></pre>
  
  <p>I guess the default <em>ssl</em> options can be overriding using <code>setSSLSocketFactory(SSLSocketFactory sslSocketFactory)</code> method, but I'm not sure how to do it or it might not be the right way at all.</p>
  
  <p>Please suggest how can I solve this issue ?</p>