title: javax.net.ssl.sslpeerunverifiedexception no peer certificate
body: <p>I am trying to insert a record into MySQL by posting data to a PHP server from an Android app. I have added the INTERNET permission to AndroidManifest.xml</p>
  
  <p>I get <code>javax.net.ssl.SSLPeerUnverifiedException: No peer certificate</code></p>
  
  <p>Android code</p>
  
  <pre><code>private void senddata(ArrayList&lt;NameValuePair&gt; data)
  {
      try 
      {
          HttpClient httpclient = new DefaultHttpClient();
          HttpPost httppost = new HttpPost("https://10.0.2.2/insert222.php");
          httppost.setEntity(new UrlEncodedFormEntity(data));
          HttpResponse response = httpclient.execute(httppost);
  
      }
      catch (Exception e) {
          // TODO: handle exception
          Log.e("log_tag", "Error:  "+e.toString());
      }
  }
  </code></pre>
  
  <p>Can anyone help?</p>