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
After restarting my client following a desktop client update prompt, I can no longer Fetch Origin #4817
@michellepurcell thanks for the report. We published an update a couple of hours ago to address a Git security issue, and I'd received a report about a potential SChannel issue, but I couldn't reproduce it myself.
Could you do me a huge favour and open a shell and run this command? This will help with troubleshooting and reporting this upstream:
@dscho I'm going to put together a test release now to downgrade to 2.17.0 and confirm this is specific to the latest build - is there any diagnostics or tracing here you'd like to gather to help get to the root cause of this?
hey @michellepurcell, you'll need to CD into the directory of the repository you were having problems with first. As a shortcut you can click on the Repository menu in GitHub Desktop and then Open in Command Line and that should open a command line with the correct directory preselected.
Just a quick update here. We're still investigating the best way to address this but preliminary findings indicate that this is a side-effect of curl/curl@8996300 (curl/curl#1325) wherein support is added to curl's schannel interface (Win32 SSL) that allows it to parse a "traditional" certificate bundle file.
This allows curl to operate the same way on Windows as it does on macOS and Linux while leveraging the native Windows APIs for SSL/TLS support.
Prior to this update the only way you could use a CA bundle file was to switch back to the openssl backend.
Unfortunately this means that as long as either the Git config variable http.sslCAInfo or the environment variable GIT_SSL_CAINFO is set (even if set to an empty string) curl will bypass the normal Windows certificate chain validation and solely use the information in the ca bundle file.
GitHub Desktop ships with a stock CA bundle file in order for the openssl backend to work properly but that also means that the schannel backend will always use the bundle file and never look at the Certificate Store.
While we search for an optimal solution that will work for both backends I believe I have workaround for any users currently stuck and unable to push/pull/fetch from their enterprise instances.
Open a command line prompt (click on the Repository menu in GitHub Desktop and then Open in Command Line).
Copy and paste the following commands (and hit Enter after pasting to run them)
This workaround will be reset the next time we ship an update but hopefully by then we will have solved it properly. Note that if you're using a beta version of GitHub Desktop you'll need to substitute the app-1.2.1 part in the paths with your version i.e. app-1.2.1-beta1.
Hi @michellepurcell@fschutt, we just released 1.2.2 to address your and others' issues without requiring a workaround. Do you mind confirming that 1.2.2 addresses your issue?
fatal: unable to access 'https://github.com/XXX/': schannel: failed to open CA file 'C:/Users/Andrew/AppData/Local/GitHubDesktop/app-1.2.2/resources/app/git/mingw64/bin/curl-ca-bundle.crt': No such file or directory
referenced curl-ca-bundle.crt does not exist at the path specified on disk,
[Edit] Manually adding the curl-ca-bundle.crt at this path does indeed fix the issue, but it was not installed/distributed with the 1.2.2 release.
Reacted by CHI Cheng, Deepanshu Varshney and Christian
@alvaromon please open a fresh issue and provide details about your setup, details about the errors you are seeing, and the diagnostic information I asked for above - it might not be the exact same issue.
On my Windows 10 Surface book, I had to remove the following line from the config file...
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
May I ask if this problem has been solved in the latest version of GitHub destop? I downloaded an old version of GitHub destop yesterday, which also suggested this problem, and then updated it today, but it did not appear, and I did nothin
Activity
shiftkey commentedon May 30, 2018
@michellepurcell thanks for the report. We published an update a couple of hours ago to address a Git security issue, and I'd received a report about a potential SChannel issue, but I couldn't reproduce it myself.
Could you do me a huge favour and open a shell and run this command? This will help with troubleshooting and reporting this upstream:
michellepurcell commentedon May 30, 2018
shiftkey commentedon May 30, 2018
@dscho I'm going to put together a test release now to downgrade to 2.17.0 and confirm this is specific to the latest build - is there any diagnostics or tracing here you'd like to gather to help get to the root cause of this?
shiftkey commentedon May 30, 2018
@michellepurcell there might be a way to workaround this issue while we work with the upstream project.
Could you try running these command in a shell in your problem Git repository and attaching the output?
If the second command works, you should be able to switch Desktop over to use OpenSSL by running this command:
shiftkey commentedon May 30, 2018
@fschutt please be patient while we investigate the issue.
You too could try switching over to OpenSSL to see if that addresses the issue:
fschutt commentedon May 30, 2018
@shiftkey yep, that seems to fix it, thanks.
michellepurcell commentedon May 30, 2018
@shiftkey - Thanks Brendan. I get errors doing that:
niik commentedon May 30, 2018
hey @michellepurcell, you'll need to
CDinto the directory of the repository you were having problems with first. As a shortcut you can click on theRepositorymenu in GitHub Desktop and thenOpen in Command Lineand that should open a command line with the correct directory preselected.niik commentedon May 30, 2018
@Reahreic is also experiencing this (see #4821) and they're on Windows 10 so this problem is not constrained to a particular version of Windows.
niik commentedon May 30, 2018
Just a quick update here. We're still investigating the best way to address this but preliminary findings indicate that this is a side-effect of curl/curl@8996300 (curl/curl#1325) wherein support is added to curl's schannel interface (Win32 SSL) that allows it to parse a "traditional" certificate bundle file.
This allows curl to operate the same way on Windows as it does on macOS and Linux while leveraging the native Windows APIs for SSL/TLS support.
Prior to this update the only way you could use a CA bundle file was to switch back to the openssl backend.
Unfortunately this means that as long as either the Git config variable
http.sslCAInfoor the environment variableGIT_SSL_CAINFOis set (even if set to an empty string) curl will bypass the normal Windows certificate chain validation and solely use the information in the ca bundle file.GitHub Desktop ships with a stock CA bundle file in order for the openssl backend to work properly but that also means that the schannel backend will always use the bundle file and never look at the Certificate Store.
While we search for an optimal solution that will work for both backends I believe I have workaround for any users currently stuck and unable to push/pull/fetch from their enterprise instances.
"%LocalAppData%\GitHubDesktop\app-1.2.1\resources\app\git\cmd\git" config --unset --system http.sslCAInfo"%LocalAppData%\GitHubDesktop\app-1.2.1\resources\app\git\cmd\git" config --unset --global http.sslCAInfo"%LocalAppData%\GitHubDesktop\app-1.2.1\resources\app\git\cmd\git" config --global http.sslBackend schannelThis workaround will be reset the next time we ship an update but hopefully by then we will have solved it properly. Note that if you're using a beta version of GitHub Desktop you'll need to substitute the
app-1.2.1part in the paths with your version i.e.app-1.2.1-beta1.Reahreic commentedon May 30, 2018
@niik The workaround you posted is allowing me to sync and push again. (At lease for now) Thank you.
Unset the http.sslCAInfo system-level config variable
nerdneha commentedon May 30, 2018
Hi @michellepurcell @fschutt, we just released 1.2.2 to address your and others' issues without requiring a workaround. Do you mind confirming that 1.2.2 addresses your issue?
akrock commentedon May 31, 2018
@nerdneha
Just did a fresh install of 1.2.2 and seeing:
referenced curl-ca-bundle.crt does not exist at the path specified on disk,
[Edit] Manually adding the curl-ca-bundle.crt at this path does indeed fix the issue, but it was not installed/distributed with the 1.2.2 release.
28 remaining items
ygor-lima commentedon Jun 12, 2018
I removed the line @shiftkey has pointed, and it worked
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
alvaromon commentedon Jun 12, 2018
@shiftkey im experience this same issue but C:/ProgramData/Git/config doesnt have the [http] line everyone is saying they removed for it to work
Ribhasingh commentedon Jun 12, 2018
Ribhasingh commentedon Jun 12, 2018
Ribhasingh commentedon Jun 12, 2018
shiftkey commentedon Jun 13, 2018
@alvaromon please open a fresh issue and provide details about your setup, details about the errors you are seeing, and the diagnostic information I asked for above - it might not be the exact same issue.
subsoap commentedon Jun 14, 2018
Just posting to say I had the same issue after updating GitHub Desktop
Deleting these lines in C:\ProgramData\Git\config as instructed seems to have solved it
dhimant1 commentedon Jun 28, 2018
On my Windows 10 Surface book, I had to remove the following line from the config file...
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
BelarminoVicenzo commentedon Jun 29, 2018
I had the same error today when I download GHDesktop
there is not file or folder C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
So I did what @shiftkey said, I delete those two lines.
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
JACK-ZHANG-coming commentedon Mar 24, 2021
请问现在github destop最新版本对于这个问题已经解决了吗,我昨天下载了一个老版本的github destop也提示此问题,然后今天更新了一下,就没有出现了,其他的我也没做任何操作。
May I ask if this problem has been solved in the latest version of GitHub destop? I downloaded an old version of GitHub destop yesterday, which also suggested this problem, and then updated it today, but it did not appear, and I did nothin
Unset the http.sslCAInfo system-level config variable