设置http.sslCAInfo后无法克隆Github存储库

Mar*_*lla 4 git ssl

我必须管理一个私人git仓库,所以我创建了一个.pem并将http.sslCAInfo设置为.pem的路径。但是现在我不能再从Github的仓库中克隆了:

致命:无法访问“ https://github.com/KidSysco/jquery-ui-month-picker/ ”:服务器证书验证失败。CAfile:/home/marco/sources/git_certs/cert.pem CRLfile:无

http.sslCAInfo的默认值是什么?我尝试将其设置为“”,但现在我得到了

致命:无法访问“ https://github.com/KidSysco/jquery-ui-month-picker/”:SSL CA证书存在问题(路径?访问权限?)

Mar*_*lla 5

好吧,我解决了

git config --global http.sslCAInfo /etc/ssl/certs/ca-certificates.crt
Run Code Online (Sandbox Code Playgroud)

您只能使用

git config http.sslCAInfo path/to/local.pem
Run Code Online (Sandbox Code Playgroud)