Bry*_*ock 9 macos ssl github git-clone
我正在尝试克隆Github上的存储库,但我收到了SSL证书问题.
$ git clone https://github.com/HonzaKral/django-threadedcomments.git
Initialized empty Git repository in /Users/Bryan/work/django-threadedcomments/.git/
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/HonzaKral/django-threadedcomments.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
如何安装相应的证书?
编辑:我完全可以通过使用git://与https://来避免这个问题
Bru*_*uno 10
打开Keychain Access,选择"System Roots"中的所有证书(如果有的话除外),右键单击并将所有项目导出到PEM文件中.
然后,使用git config --system http.sslCAInfo /path/to/this/file.pem.如果您不想--system在克隆该特定存储库之前全局设置它,则可以在GIT_SSL_CAINFO环境变量中设置此路径(例如GIT_SSL_CAINFO=/path/to/this/file.pem git clone ...).这将使Git(和libcurl)将该文件用作可信CA文件.(您可以在git-config手册页中查看此选项的详细信息.)
| 归档时间: |
|
| 查看次数: |
5082 次 |
| 最近记录: |