fatal: unable to access, schannel: failed to open

2020-03-09 08:56发布

Full error text:

fatal: unable to access 'https://github.com/Repository_name': schannel: failed to open CA file 'C:/Users/Username/AppData/Local/GitHubDesktop/app-1.2.1/resources/app/git/mingw64/ssl/certs/ca-bundle.crt': No such process

Application just stopped to work and throwing this error every time when I try to fetch, pull, push or clone any repository. The same commands in bash work correctly

6条回答
太酷不给撩
2楼-- · 2020-03-09 09:05
  1. Type %ProgramData%/ in Windows search bar(Type here to search field at bottom left corner)
  2. Go to /Git
  3. Open congif file in text editor. (Preferably Notepad++ or similar, as this allows to edit the file Administrator mode. Otherwise, write permission is denied.)
  4. Remove this entry from the file

    [http]
    sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
    
  5. Save and close file. Try to push again, it works!

Reference:

fatal: unable to access curl-ca-bundle.crt #4836

After restarting my client following a desktop client update prompt, I can no longer Fetch Origin #4817

查看更多
Melony?
3楼-- · 2020-03-09 09:08

The error I got was: fatal: unable to access 'https://github.com/{reponame}.git/': schannel: failed to open CA file 'C:/Program Files (x86)/Git/mingw64/ssl/certs/ca-bundle.crt': No such process

I fixed it by opening my config file located in "C:\ProgramData\Git\config" and updating the setting as follows sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt

I hope this helps someone

查看更多
我只想做你的唯一
4楼-- · 2020-03-09 09:17

you can use it

git config http.sslVerify false

use it in your repository or use this command if you dont have a git repo

git config --global http.sslVerify false
查看更多
迷人小祖宗
5楼-- · 2020-03-09 09:22

CF How do I set GIT_SSL_NO_VERIFY for specific repos only?

I fixed this by running
git config http.sslVerify false but not sure how secure my GIT comms is now :(

查看更多
小情绪 Triste *
6楼-- · 2020-03-09 09:24

I fixed it by just removing "C:\ProgramData\Git\config"

查看更多
干净又极端
7楼-- · 2020-03-09 09:25

Go to %ProgramData%/Git open config file with a text editor and substitute

sslCAInfo = ... some stuff with

sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt

This has been already discussed in this issue on Github https://github.com/desktop/desktop/issues/4817 and it will be fixed asap.

查看更多
登录 后发表回答