title: accepting HTTPS connections with self-signed certificates
body: <p>I'm trying to make HTTPS connections, using <code>HttpClient</code> lib, but the problem is that, since the certificate isn't signed by a recognized Certificate Authority (CA) like <a href="https://www.verisign.com/" rel="noreferrer">Verisign</a>,<a href="https://www.globalsign.com/en/" rel="noreferrer">GlobalSIgn</a>, etc., listed on the set of Android Trusted Certificates, I keep getting <code>javax.net.ssl.SSLException: Not trusted server certificate</code>.</p>
  
  <p>I've seen  solutions where you simply accept all certificates, but what if I want to ask the user? </p>
  
  <p>I want to get a dialog similar to that of the browser, letting the user decide to continue or not. Preferably I'd like to use the same certificatestore as the browser. Any ideas?</p>