Skip to content

"Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer" #2420

@marco-maroni-spot-software

Description

Package

dio

Version

5.8.0+1

Operating-System

Windows

Adapter

Default Dio

Output of flutter doctor -v

[√] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.26100.4351], locale it-IT)
    • Flutter version 3.24.5 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (8 months ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\marco.maroni\AppData\Local\Android\sdk
    • Platform android-33-ext4, build-tools 33.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 21.0.4+-12508038-b607.1)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.14.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
    • Visual Studio Professional 2022 version 17.14.36109.1
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.4+-12508038-b607.1)

[√] VS Code (version 1.101.2)
    • VS Code at C:\Users\marco.maroni\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.114.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.4351]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 138.0.7204.97
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 138.0.3351.65

[√] Network resources
    • All expected network resources are available.

• No issues found!

Dart Version

3.5.4

Steps to Reproduce

The problem occurs with the Retrofit and Dio library on this operating system:

Windows 10 Home Edition
Version 22H2
Install date: ‎October 20, 2024
Build: 19045.6036

The error occurs simply by calling an API served on an HTTPS/TLS server.
The error is: "Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer" (../../../flutter/thirdy_party/boringssl/src/ssl/handshake.cc:393))

Expected Result

Successfully calling the API

Actual Result

"Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer" (../../../flutter/thirdy_party/boringssl/src/ssl/handshake.cc:393))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions