小编lyt*_*yte的帖子

如何在不重建包的情况下让git告诉curl使用openssl而不是gnutls?

我们有一个GnuTLS不喜欢的内部服务器,例如:

gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt foo.example.com
Processed 173 CA certificate(s).
Resolving 'foo.example.com'...
Connecting to '1.2.3.4:443'...
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.
Run Code Online (Sandbox Code Playgroud)

GnuTLS以外的所有内容都可以正常使用,但是git似乎在Ubuntu 14.04.2 LTS上使用GnuTLS开箱即用,所以git失败了:

GIT_CURL_VERBOSE=1 git clone https://foo.example.com/some-repo.git
Cloning into 'some-repo'...
* Couldn't find host foo.example.com in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
*   Trying 1.2.3.4...
* Connected to foo.example.com (1.2.3.4) port 443 (#0)
* found 173 certificates …
Run Code Online (Sandbox Code Playgroud)

git ubuntu curl openssl gnutls

5
推荐指数
1
解决办法
6280
查看次数

标签 统计

curl ×1

git ×1

gnutls ×1

openssl ×1

ubuntu ×1