Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 此错误消息意味着什么:致命:无法访问';https:URL';:对等';s的证书颁发者未被识别?_Git_Ssl_Certificate - Fatal编程技术网

Git 此错误消息意味着什么:致命:无法访问';https:URL';:对等';s的证书颁发者未被识别?

Git 此错误消息意味着什么:致命:无法访问';https:URL';:对等';s的证书颁发者未被识别?,git,ssl,certificate,Git,Ssl,Certificate,我尝试了许多与证书相关的不同搜索,但都没有找到。我不知道如何看我是否有好的证书。此消息是在尝试在Fedora中推送git提交后发出的,如下所示: $ git push origin master 此证书是与git相关的还是与git相关的?顺便说一句,ssh可以工作…一种可能是您的系统上没有证书颁发机构证书 如果是这种情况,可以按照中的说明添加这些 这比忽略上述CA(env GIT\u SSL\u NO\u VERIFY=true GIT clone)要好https://github...)

我尝试了许多与证书相关的不同搜索,但都没有找到。我不知道如何看我是否有好的证书。此消息是在尝试在Fedora中推送git提交后发出的,如下所示:

$ git push origin master

此证书是与git相关的还是与git相关的?顺便说一句,ssh可以工作…

一种可能是您的系统上没有证书颁发机构证书

如果是这种情况,可以按照中的说明添加这些

这比忽略上述CA(
env GIT\u SSL\u NO\u VERIFY=true GIT clone)要好https://github...


在本OP的具体案例中:

我正在运行64位fedora 19,作为
root
,我转到
/etc/ssl/certs
,看到有一个makefile,所以我使用不同的序列运行它,即:

尝试了
git
,结果成功了

这对我有用

git config --global http.sslCAPath /etc/pki/tls/certs
git clone <repository>
git config --global http.sslVerify "false"

git clone < repo-url >
git config--global http.sslCAPath/etc/pki/tls/certs
git克隆
这对我很有用

git config --global http.sslCAPath /etc/pki/tls/certs
git clone <repository>
git config --global http.sslVerify "false"

git clone < repo-url >
git config--global http.sslVerify“false”
git克隆

仅供参考,我正在运行64位fedora 19,作为root用户,我转到/etc/ssl/certs,看到有一个生成文件,所以我使用不同的序列运行它,即:$make serial=5。试过git,它成功了。谢谢你的回答。@BrandonDewey,接得好!我已经在答案中加入了您的评论以提高可视性。我无法理解为什么这不包括在Github快速设置页面中-我相信每个人都会从这个繁琐的问题开始!!我不建议这样做:它将禁用所有存储库的SSL检查。是的,作为对一个存储库的测试,您可以执行
git-chttp.sslVerify=false克隆
。但对于所有存储库,最好解决根本原因,而不是完全规避TLS安全性。