【发布时间】:2013-10-03 10:39:03
【问题描述】:
我已经在我的 git 服务器中安装了 ssl 证书和密钥。但是当我尝试从 mysysgit 通过 https 克隆时出现错误。早些时候,它在 http 上运行良好。无法确定失败的地方
$ git clone https://server.name/git/testing.git
Cloning into 'testing'...
* Couldn't find host server.name in the _netrc file; using defaults
* About to connect() to server.name port 443 (#0)
* Trying server.name...
* Adding handle: conn: 0x274fd60
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x274fd60) send_pipe: 1, recv_pipe: 0
* Connected to server.name(server.name) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: C:\Users\user1\AppData\Local\Programs\Git/bin/curl-ca-bundle.crt
CApath: none
* SSL certificate problem: self signed certificate
* Closing connection 0
fatal: unable to access 'https://server.name/git/testing.git/': SSL certificate problem: self signed certificate
【问题讨论】:
-
这已被标记为与自签名证书相关的问题的副本。但是,当中间证书未在服务器上注册时,非自签名证书也会发生这种情况。请参阅:bugs.debian.org/cgi-bin/bugreport.cgi?bug=787281 解释:nginx.org/en/docs/http/configuring_https_servers.html#chains 以及可能的解决方案(使用 nginx):futurestud.io/tutorials/…