简体   繁体   English

Windows上的Git-SSL证书错误

[英]Git on Windows- SSL certificate error

There are many question related to this problem and much more answers. 有许多与此问题相关的问题,还有更多答案。 None of them works. 它们都不起作用。 I have PortableGit and configured to use certificate from specific store. 我有PortableGit,并配置为使用来自特定商店的证书。 If I specify wrong file path, I get eror: "error setting certificate verify locations: CAfile" As soon as I specify correct path, this error is not shown. 如果我指定了错误的文件路径,则会出现错误:“错误设置证书验证位置:CAfile”一旦我指定了正确的路径,就不会显示此错误。

We are using our local CA authority. 我们正在使用我们本地的CA权威。 Local GitHub server is third in certificate chain. 本地GitHub服务器在证书链中排名第三。 I added github server's certificate to certificate store. 我将github服务器的证书添加到证书存储中。 git clone stil does not work. git clone stil不起作用。 Where is the problem? 问题出在哪儿?

CA store needs all certificates in certificate chain to be present. CA Store需要存在证书链中的所有证书。 I added every certificate in certificate chain to certificate store. 我将证书链中的每个证书添加到证书存储中。 Note: Global gitconfig is located at "C:\\PortableApps\\GitPortable\\mingw64\\etc\\gitconfig" (please adjust "C:\\PortableApps\\GitPortable\\" to your system). 注意:全局gitconfig位于“ C:\\ PortableApps \\ GitPortable \\ mingw64 \\ etc \\ gitconfig”(请根据您的系统调整“ C:\\ PortableApps \\ GitPortable \\”)。 I added following line to my local gitconfig 我将以下行添加到本地gitconfig中

[http]
sslCAinfo = C:/PortableApps/GitPortable/ssl/certs/ca-bundle.crt

Local gitconfig is located at 本地gitconfig位于

~/.gitconfig 〜/ .gitconfig

(c:\\Users\\xxx.gitconfig) (c:\\ Users \\ xxx.gitconfig)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM