pia*_*ier 9 arch-linux git curl certificates
我在 Arch linux 中的证书有问题。好像找不到ca-certificates.crt
。我已经更新了我的系统并安装了ca-certificates{,-utils,-mozilla}
软件包,但它仍然无法正常工作。
git clone http://github.com/sstephenson/bats.git
Cloning into 'bats'...
fatal: unable to access 'https://github.com/sstephenson/bats.git/': error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
Run Code Online (Sandbox Code Playgroud)
pia*_*ier 16
我发布了我自己问题的答案,因为我解决了这个问题,但在其他地方没有找到有效的解决方案。没有 /etc/ssl/certs/ca-certificate-crt 文件。因此,需要提供指向正确证书的链接。
$ ln -s /etc/ca-certificates/extracted/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt
Run Code Online (Sandbox Code Playgroud)
现在我可以通过 https 进行 curl 和 git clone。
归档时间: |
|
查看次数: |
11657 次 |
最近记录: |