Skip to content

Pub get Handshake error in client CERTIFICATE_VERIFY_FAILED #36176

Open
@jt274

Description

@jt274

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureUse area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions