0

I have now registered https domain in Cloud Run. It works very well on localhost, but not on real domain.

If I click on the ssl icon on my website, it says Google LLC Certified.

But I keep getting errors on my site.

unnhandled Exception: HandshakeException: Connection terminated during handshake

It works when I do,

http.get('https://google.com')...

but it doesn't work when I do it from my site.

http.get('httpsmysitecom')...

And if I don't do it in Flutter with the same address and just turn on Chrome and hit the url, the rest api works well. Now I'm going crazy. Because of this, I got a new ssl on comodo as well.

dontknowhy
  • 2,480
  • 2
  • 23
  • 67

1 Answers1

0

It is possible that this is a country-specific problem according to these threads:

So I would recommend you to try with VPN on so You can be sure that this is the issue here.

If that does not help there is also an possibility of following:

Every time the http client in your app rejects a call before it hits the appropriate Rest Service, you get a handshake exception. The http client for flutter automatically rejects requests made to services that use expired or unverified security certificates.

You can also overwrite your default http client and make it to send requests to a rest service with invalid certificate by using this example in this thread

Rohit Kharche
  • 2,541
  • 1
  • 2
  • 13