在PPC Mac 10.5.8上设置git子模块时出现CA证书错误

我在github上有一个与子模块相关的git仓库,当我尝试在本地设置submodules时:

git submodule init git submodule update 

我得到这个错误:

 error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/wincent/Command-T.git/info/refs fatal: HTTP request failed Clone of 'https://github.com/wincent/Command-T.git' into submodule path 'dotfiles/vim/bundle/command-t' failed 

我知道这是CA证书过期Leopard的一个问题,我试图通过首先安装一个带有ssl支持的新版本curl(现在在版本7.22上)来解决这个问题,然后当没有工作我根据指示更新了我的crt,例如: http : //www.simplicidade.org/notes/archives/2011/06/github_ssl_ca_errors.html

我仍然得到同样的错误。

我也尝试调整.gitmodules中的协议来从https的git,但这也没有任何区别。 有任何想法吗?

我也尝试调整.gitmodules中的协议来从https的git,但这也没有任何区别。 有任何想法吗?

那么你仍然通过https://获取,而不是git:// 。 您需要更新.gitmodules 的URL 以及 .git/config列出的URL。

关于你的证书问题,我有几个问题:

  • 什么which curl打印出来? 什么which curl-config打印出来?
  • curl-config --ca打印出来的是什么?
  • 那是你添加新证书的文件吗?