You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Push fails with Error -17 (SSL certificate invalid) on Godot 4.6 even with valid PAT #317
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:
Open a project in Godot 4.6.
Ensure the Git plugin is active and a remote "origin" is set.
Attempt to "Push" using the Git UI within the Godot editor.
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
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
Calinou commentedon Jan 28, 2026
Thanks for the report! Consolidating in #146.
Thinh-T-Diep commentedon Jan 29, 2026
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.
Margad0413 commentedon Jan 30, 2026
@Thinh-T-Diep Thanks a lot! I switched to version 3.1.1 as you advised and it works now. Appreciate the help!