从 Mac OS X 10.11.3(El Capitan)连接到 git 时出现 SSL 错误

从 Mac OS X 10.11.3(El Capitan)连接到 git 时出现 SSL 错误

当我尝试从 Mac 系统通过 https 从 git 存储库克隆/拉取/获取时,我一直收到错误:

error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly

增加日志级别后,我收到以下与 SSL 相关的错误:

> POST /some/repository.git/git-upload-pack HTTP/1.1
Host: somehost.madeup.now
Authorization: Basic someAuth=
User-Agent: git/2.4.9 (Apple Git-60)
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Encoding: gzip
Content-Length: 613

* upload completely sent off: 613 out of 613 bytes
< HTTP/1.1 200 OK
< Date: Thu, 10 Mar 2016 09:36:23 GMT
< Server: nginx
< Content-Type: application/x-git-upload-pack-result
< Status: 200 OK
< Cache-Control: no-cache
< X-Request-Id: 531bdbc2-cc8d-407b-961a-f8b7dcd45baf
< X-Runtime: 0.138041
< Connection: close
< 
* SSLRead() return error -9806

我发现了一个非常类似的案例堆栈溢出,并且我按照接受的答案中的步骤进行操作,这意味着将 git、curl 和 openssl 与 homebrew 升级到最新版本:

git: 2.7.2
curl: 7.47.1
openssl: 1.0.2g

就我而言,这没有帮助。我一直收到相同的错误。

有什么想法可能导致这次失败的原因吗?

相关内容