GIT SSL error persist despite recommended fix for Mac OS X Yosemite

﹥>﹥吖頭↗ 提交于 2019-12-23 05:17:05

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/27927719/git-ssl-error-persist-despite-recommended-fix-for-mac-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!