Help Need: Handshake error in client

Hi,

I am trying to connect to a signalR service and encountered with an error as below.

HandshakeException: Handshake error in client (OS Error:
I/flutter ( 6985): │ :no_entry: CERTIFICATE_VERIFY_FAILED: Hostname mismatch(handshake.cc:393))

Any help on this?

Hi,

We’re also seeing this error, if a user is running a VPN disabling it can sometimes help.

This issue on GitHub may be related:

SSL certificates are explicitly tied to hostnames. If you’re connecting to serverA.com and you get a certificate that says serverB.com, you’ll see this error.

The answer to why you’re getting a mismatched hostname in the certificate could be a million different reasons. I know that, for myself, I use a secure DNS server with a blocklist. If I try to connect to a site on the blocklist, my DNS server will return a block page with an SSL certificate (that doesn’t match the original hostname). This is just one example of what could be happening.

1 Like