title: Avoid "Accept unknown certificate" warning in android while using xmpp
body: <p>I am trying to search on XMPP. I got the code from <a href="http://yaxim.org/" rel="nofollow noreferrer">here</a>. It works fine and I am able to connect to the server. But its showing the alert window like this</p>
  
  <p><img src="https://i.stack.imgur.com/fdEDM.png" alt="Warning for connection"></p>
  
  <p>and If I click "Always" or "Once" it is accepting and I am able to show the contacts and chat messages....</p>
  
  <p>Is there any way to stop this alert and can I connect directly to the server?</p>