server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

问题描述:

挂 使用 Git 证书不被信任如下:

$ git clone https://github.com/xxx.git
Cloning into 'xxx'...
fatal: unable to access 'https://github.com/xxx.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

解决方法

键入命令export GIT_SSL_NO_VERIFY=1使得本次登陆中,GIT 不进行 SSL 验证
也可以在 /etc/profile或者 shell 的配置文件中添加:

$ export GIT_SSL_NO_VERIFY=1
# OR
# git config --global http.sslverify false

使得每次开机登陆后都不进行 SSL 验证
更多方法可见 StackOverflow 上的回答。

你可能感兴趣的:(memos)