git (v2.18.0) error setting certificate

created at 07-05-2021 views: 4


Prompt when git pull:

fatal: unable to access 'https://xxx/xxx/xxx.git/': error setting certificate verify locations:
  CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none


Through searching, it is found that the directory of ca-bundle.crt is really


Therefore, you need to modify the gitconfig file


After finally modifying sslCAInfo to the location of ca-bundle.crt, git pull succeeds

    sslCAInfo = C:/soft/Git/mingw64/ssl/certs/ca-bundle.crt
    sslBackend = openssl
[diff "astextplain"]
    textconv = astextplain
[filter "lfs"]
    clean = git-lfs clean -- %f
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true
    helper = manager
created at:07-05-2021
edited at: 07-05-2021: