title: httpclient ssl certificate on android
body: <p>I have some troubles with ssl using httpclient on android i am trying to access self signed certificate in details i want my app to trust all certificates ( i will use ssl only for data encryption). First i tried using this guide <a href="http://hc.apache.org/httpclient-3.x/sslguide.html" rel="nofollow noreferrer">http://hc.apache.org/httpclient-3.x/sslguide.html</a> on Desktop is working fine but on android i still got javax.net.ssl.SSLException: Not trusted server certificate. After searching in google i found some other examples how to enable ssl.</p>
  
  <p><a href="http://groups.google.com/group/android-developers/browse_thread/thread/62d856cdcfa9f16e" rel="nofollow noreferrer">http://groups.google.com/group/android-developers/browse_thread/thread/62d856cdcfa9f16e</a> - Working when i use URLConnection but with HttpClient still got the exception.</p>
  
  <p><a href="http://www.discursive.com/books/cjcook/reference/http-webdav-sect-self-signed.html" rel="nofollow noreferrer">http://www.discursive.com/books/cjcook/reference/http-webdav-sect-self-signed.html</a> - on Desktop using jars from apache is working but in android using included in SDK classes can't make it work.</p>
  
  <p><a href="http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/200808.mbox/%3C1218824624.6561.14.camel@ubuntu%3E" rel="nofollow noreferrer">http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/200808.mbox/%3C1218824624.6561.14.camel@ubuntu%3E</a> - also get the same exception</p>
  
  <p>So any ideas how can i trust all certificates on android using HttpClient</p>