尽管针对Mac OS X优胜美地推荐了修补程序,但GIT SSL错误仍然存​​在 [英] GIT SSL error persist despite recommended fix for Mac OS X Yosemite

查看:352
本文介绍了尽管针对Mac OS X优胜美地推荐了修补程序,但GIT SSL错误仍然存​​在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继续在Yosemite上发现错误: SSL:证书验证失败(结果:5)(128),尽管网上发现了所有指示以解决此问题。



我目前的设置(HomeBrew)是:

  $ php --version 
PHP 5.5 .20(cli)(构建时间:2015年1月11日20:00:36)
版权所有(c)1997-2014 PHP Group
Zend Engine v2.5.0,Copyright(c)1998-2014 Zend Technologies

$ curl --version
curl 7.37.0(x86_64-apple-darwin14.0.0)libcurl / 7.37.0 OpenSSL / 1.0.1k zlib / 1.2.5
协议:dict文件ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp

$ php -i | grepSSL版本
SSL版本=> OpenSSL / 1.0.1

我错过了什么吗?当我设置 sslVerify = false 时,错误更改为 SSL:CA证书集,但证书验证已禁用。我已经拥有钥匙链中的证书,并且可以在浏览器中访问它,而不会出现任何问题。



我也试过:

  $ gnutls-cli -p 7990 **。***。**。** 
- 状态:证书不受信任。证书颁发者是未知的。
***服务器证书的PKI验证失败...
***致命错误:证书中出现错误。
***握手失败
GnuTLS错误:证书中出现错误。

编辑:
请注意,我也编辑了我的。 git>配置文件在回购协议中包括从Firefox导出的证书,例如:

  [http] 
sslCAInfo = / link / to / certificate.pem


解决方案

检查你的〜/ .gitconfig文件
我通过暂时删除提到sslCAInfo和sslVerify的行来解决我的问题。

然后不要忘记添加它们后来的情况下,证书就是你用来做其他事情的证书。


I continue to get the error: SSL: certificate verification failed (result: 5) (128) on Yosemite despite following all directions found online to fix it.

My current setup (HomeBrew) is:

$ php --version
PHP 5.5.20 (cli) (built: Jan 11 2015 20:00:36) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

$ curl --version
curl 7.37.0 (x86_64-apple-darwin14.0.0) libcurl/7.37.0 OpenSSL/1.0.1k zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp

$ php -i | grep "SSL Version"
SSL Version => OpenSSL/1.0.1

Am I missing something? When I set sslVerify = false the error changes to SSL: CA certificate set, but certificate verification is disabled. I already have the certificate in Key Chain and I can access it in the brower without problems.

I also tried:

$ gnutls-cli -p 7990 **.***.**.**
- Status: The certificate is NOT trusted. The certificate issuer is unknown. 
*** PKI verification of server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.

EDIT: Note that I've also edited my .git > config file in the repo to include the certificate exported from Firefox as such:

[http]
    sslCAInfo=/link/to/certificate.pem

解决方案

check your ~/.gitconfig file I fixed my problem by temporarily removing the lines mentioning sslCAInfo and sslVerify.

then don't forget to add them later case the certificate is one that you are using it for something else.

这篇关于尽管针对Mac OS X优胜美地推荐了修补程序,但GIT SSL错误仍然存​​在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆