用http.sslverify false用于特定URL的git克隆不起作用
我的gitlab服务器具有自签名证书。当我克隆存储库时,我会
fatal: unable to access 'https://10.10.10.10.10/gitlab-instance-3b9321be/test.git/': Issuer certificate is invalid.
在运行此命令git config -global http.sslverify false false
克隆成功完成后获得。我不想在全球范围内忽略证书,因此我删除了我的〜/.gitConfig
文件,然后运行此命令git config - global -bool -bool -bool -Add http.http.https://10.10 .10.10.sslverify false
。现在,我的./ gitconfig
看起来像这样:
[http "https://10.10.10.10"]
sslverify = false
git克隆在原始错误中失败。
我正在使用RHEL 7.8运行,而我的git版本为1.8.3.1。这应该根据其他答案来起作用。我在做什么错?
My GitLab server has a self signed certificate. When I clone a repository I get
fatal: unable to access 'https://10.10.10.10.10/gitlab-instance-3b9321be/test.git/': Issuer certificate is invalid.
After running this command git config --global http.sslVerify false
the clone completes successfully. I don't want to ignore certificates globally so I deleted my ~/.gitconfig
file and ran this command git config --global --bool --add http.https://10.10.10.10.sslverify false
. Now my ./gitconfig
looks like this:
[http "https://10.10.10.10"]
sslverify = false
git clone fails with the original error.
I'm running on RHEL 7.8 and my git version is 1.8.3.1. This should work based on other answers. What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(是什么让您相信这一点?这不是真的。 是真的,除了...)
从git 1.8.5发行说明:
请注意,1.8.5> 1.8.3.1:您的git版本太老了。
(What makes you believe that? It's not true. It would be true, except...)
From the Git 1.8.5 release notes:
Note that 1.8.5 > 1.8.3.1: your Git version is simply too old.