title: Flutter HTTPS Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:363))
body: <p>A colleague has given me a Flutter project to try to build the app in iOS (I use a Mac, we both use Android Studio). Everything is ok except for this error:  </p>
  
  <pre><code>Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:363))
  </code></pre>
  
  <p>If I use HTTP instead of HTTPS it works obviously. My colleague said he solved by adding this line of code:  </p>
  
  <pre><code>client.badCertificateCallback = (X509Certificate cert, String host, int port) =&gt; true;
  </code></pre>
  
  <p>This line of code is also in my project because the source is the same. So why does it work on Android, but not on iOS?</p>