I'm getting this error in a flutter app when making https calls with any of the dart:io, http, and dio package clients to a development server that has a self-signed certificate:
I/flutter ( 5545): HandshakeException: Handshake error in client (OS Error: I/flutter ( 5545): CERTIFICATE_VERIFY_FAILED: invalid or inconsistent certificate extension(handshake.cc:359))
I've tried the suggestions in this post Flutter https with self signed certificate but both setting the badCertificateCallback on the client and using the HttpOverrides.global is not helping, in my case the callback is never hit/called. Any suggestions on what to try next?