Skip to content

Pub get Handshake error in client CERTIFICATE_VERIFY_FAILED #36176

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

Open
jt274 opened this issue Mar 12, 2019 · 2 comments
Open

Pub get Handshake error in client CERTIFICATE_VERIFY_FAILED #36176

jt274 opened this issue Mar 12, 2019 · 2 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@jt274
Copy link

jt274 commented Mar 12, 2019

Dart SDK Version: Dart VM version: 2.1.2-dev.0.0.flutter-0a7dcf17eb (Tue Feb 12 01:59:15 2019 +0000) on "windows_x64"
Windows 10 OS

I will start by saying I have thoroughly read all the Dart/Pub/Flutter issues I can find on this subject, and none of the solutions have fixed the issue for me. I am not behind a proxy.

I have a new installation of Dart and Flutter and am trying to do this simple tutorial: https://flutter.dev/docs/get-started/codelab

When I run flutter packages get, or for more information, flutter packages pub get --verbosity=all, I get the following error:

HTTP error:
| HandshakeException: Handshake error in client (OS Error:
| CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:352))

My flutter doctor -v output is:

[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.590], locale en-US)
• Flutter version 1.2.1 at C:\flutter
• Framework revision 8661d8a (4 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf1)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\Me\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:\Users\Me\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 33.3.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

I have installed android studio, flutter, dart on a different machine with Windows 10 on the same network, and had no problems. But it is not the computer I need for development.

Things I have tried that did not resolve the issue:

  • Disable Windows Defender (no other antivirus on the computer)
  • Set the DART_VM_OPTIONS environment variable pointing to a self-signed certificate as per the discussion in this issue: Iron Port TLS 1.0 proxy, pub get fails #25615 (although I've not sure if I'm doing this correctly)
  • Set the PUB_HOSTED_URL and FLUTTER_STORAGE_BASE_URL to the China repositories as in this issue: Handshake Error - Connection Verify Failed #32131
  • Set the https_proxy environment variable to various values: localhost:8080, localhost:443, 127.0.0.1:8080, 127.0.0.1:443, localhost:80, 127.0.0.1:80
  • Tried all of the above in an administrator privileges CLI and Powershell window
  • I can also access pub.dartlang.org in Chrome just fine

Hoping someone can help figure out what may be causing this, as I can't use dart without resolving. Thanks!

@a-siva a-siva added the area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. label Mar 12, 2019
@jonasfj
Copy link
Member

jonasfj commented Apr 2, 2019

Are you running behind a corporate proxy that is monitoring your HTTPS traffic by putting itself in the middle and requiring all users to trust a self-signed CA?

@Somya-Bansal
Copy link

Somya-Bansal commented May 21, 2019

Previously I was getting self signed certificate Handshake error.
I tried this (https://github.com/dart-lang/sdk/issues/25615#issuecomment-415588236) workaround and now I'm getting a different error saying
Got TLS error trying to find package google_maps_flutter at https://pub.dartlang.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

4 participants