Self-signed certificate and loopj for Android
===

I'm trying to use loopj[1] for making async HTTP requests. Works great, except when I try to access https site with self-signed cert. I get javax.net.ssl.SSLPeerUnverifiedException: No peer certificate.

I guess the default ssl options can be overriding using setSSLSocketFactory(SSLSocketFactory sslSocketFactory) method, but I'm not sure how to do it or it might not be the right way at all.

Please suggest how can I solve this issue ?

thank you!

[1]
http://loopj.com/android-async-http