Skip to content

[Bug] Push fails with Error -17 (SSL certificate invalid) on Godot 4.6 even with valid PAT #317

Closed

Description

@Margad0413

Godot version

4.6.stable

Godot Git Plugin version

3.2.1

System information

Windows 10

Issue description

I am experiencing a persistent issue where I cannot push my changes to a remote repository using the Git plugin in Godot 4.6 (Stable). Despite using a valid Personal Access Token (PAT) as a password—which worked in previous versions—the plugin consistently fails with an SSL-related error.

Steps to reproduce

Steps to reproduce:

  1. Open a project in Godot 4.6.

  2. Ensure the Git plugin is active and a remote "origin" is set.

  3. Attempt to "Push" using the Git UI within the Godot editor.

  4. Input the GitHub username and a valid PAT as the password.

Expected behavior: The plugin should successfully connect to the remote and push the commits.
Actual behavior (Error Log): The following error appears in the Godot output console:

GitPlugin: Performing push to origin
ERROR: core/variant/variant_utility.cpp:1024 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -17: the SSL certificate is invalid in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L533

Image

What I've tried:

I have regenerated and tested a new PAT, but the error persists.

Interestingly, performing git push via the terminal (Git Bash) works perfectly on the same machine and repository.

Even after setting git config --global http.sslVerify false in the terminal, the Godot plugin still throws the Error -17: SSL certificate is invalid error.

It seems the plugin (libgit2) is not correctly inheriting the system's SSL configuration or cannot find the valid certificate path in version 4.6.

Activity

  1. Calinou commented on Jan 28, 2026

    @Calinou
    Member

    Thanks for the report! Consolidating in #146.

  2. Thinh-T-Diep commented on Jan 29, 2026

    @Thinh-T-Diep

    I was about to open an issue with this exact bug. I have resorted to reverting back to using version 3.1.1, which works fine with Godot 4.6.

  3. Margad0413 commented on Jan 30, 2026

    @Margad0413
    Author

    @Thinh-T-Diep Thanks a lot! I switched to version 3.1.1 as you advised and it works now. Appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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