Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CERTIFICATE_VERIFY_FAILED #35

Open
javico2609 opened this issue Apr 11, 2020 · 3 comments
Open

CERTIFICATE_VERIFY_FAILED #35

javico2609 opened this issue Apr 11, 2020 · 3 comments

Comments

@javico2609
Copy link

[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:354))

@R3ckaH
Copy link

R3ckaH commented Jun 13, 2020

I'm having the same issue when connecting from either emulator or phone.

E/flutter (26762): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error:
E/flutter (26762): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))

@javico2609
Copy link
Author

@R3ckaH hi, download and add this line in dartio_http_client.dart line 38

httpClient.badCertificateCallback =
          ((X509Certificate cert, String host, int port) => true);

@aaronjohnsonwsu
Copy link

I am having the same issue when using the iOS emulator. It seems to be happening when I am using my localhost signalr hub. For example, when i publish the code out to azure I do not get this error but when I try to connect to my signalr hub at https://localhost:8080/hub?id={ID} i will receive this error.

@R3ckaH I tried adding your code above and it did not solve the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants