Mak*_*ash 1 git ssl lighttpd ssl-certificate
当我尝试通过命令克隆存储库时
git clone https://git.lighttpd.net/mirrors/libev.git
Run Code Online (Sandbox Code Playgroud)
我收到一个错误
fatal: unable to access 'https://git.lighttpd.net/mirrors/libev.git/': server certificate verification failed. CAfile: none CRLfile: none
如果设置 GIT_CURL_VERBOSE=1
Cloning into 'libev'...
* Couldn't find host git.lighttpd.net in the .netrc file; using defaults
* Trying 5.9.70.195:443...
* TCP_NODELAY set
* Connected to git.lighttpd.net (5.9.70.195) port 443 (#0)
* found 387 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.3 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification failed. CAfile: none CRLfile: none
* Closing connection 0
fatal: unable to access 'https://git.lighttpd.net/mirrors/libev.git/': server certificate verification failed. CAfile: none CRLfile: none
Run Code Online (Sandbox Code Playgroud)
我可以设置GIT_SSL_NO_VERIFY=1但这并不能解决问题
PS ubuntu 20.04
正如 @kamilcuk 建议的那样,请务必在您的计算机上安装证书。
apt install ca-certificates
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10110 次 |
| 最近记录: |