title: Issue in using a self signed certificate in IBM MobileFirst android
body: <p>I am trying to connect to a https mobilefirst server from my android app. using a self signed certificate but not sure if its a self signed CA certificate.</p>
  
  <p>I used the following code.
  certificate file name :mycer.der
  I have put this certificate in assets folder.</p>
  
  <p>Now I am using the following code to validate the certificate.</p>
  
  <p><code>WLClient client= new WLClient(getApplicationContext());
   client.pinTrustedCertificatePublicKey("dev1mfp.mtb.der");</code></p>
  
  <p>But still I am getting following error</p>
  
  <p><code>06-03 03:58:04.803 20647-20699/? W/System.err: javax.net.ssl.SSLPeerUnverifiedException: Cannot verify hostname: 00.00.00.00 06-03 03:58:04.803 20647-20699/? W/System.err:     at android.net.SSLCertificateSocketFactory.verifyHostname(SSLCertificateSocketFactory.java:205)
  06-03 03:58:04.803 20647-20699/? W/System.err:     at android.net.SSLCertificateSocketFactory.createSocket(SSLCertificateSocketFactory.java:443)
  06-03 03:58:04.803 20647-20699/? W/System.err:     at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:394)
  06-03 03:58:04.803 20647-20699/? W/System.err:     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:170)
  06-03 03:58:04.803 20647-20699/? W/System.err:     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
  06-03 03:58:04.803 20647-20699/? W/System.err:     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)</code></p>
  
  <p>Please suggest is there any thing I need to add in my code or is the issue with certificate.</p>