title: SSL handshake error on self-signed cert in Flutter
body: <p>I'm trying to connect server with self-signed cert, but I take error:<br>
  E/flutter ( 3781): HandshakeException: Handshake error in client (OS Error:
  <br>E/flutter ( 3781): CERTIFICATE_VERIFY_FAILED: Hostname mismatch(ssl_cert.c:345))<br>
  Code, where I set cert:</p>
  
  <pre><code>String path = '/storage/sdcard0/server.crt';
  SecurityContext context = new SecurityContext();
  context.setTrustedCertificates(path, password: 'hello');
  _client = new HttpClient(context: context);
  </code></pre>
  
  <p>What I'm doing wrong?</p>
  
  <p>If I don't set SecurityContext, I get SSL handshake error.</p>