提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
- 前言
- 解决方案
- 查看
- 更改回默认的安全证书
- 总结
前言
git clone https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git 正克隆到 'tianjin-project'... fatal: unable to access 'https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
解决方案
git config --global http.sslverify false
查看
终端输入:
git config --list
(base) l@l:~/f/PDet$ git config --list safe.directory=/home/l/bladedisc safe.directory=/home/l/EasyCV [email protected] user.name=z http.sslverify=false core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
可以看到这一行,代表完成了安全证书的修改
http.sslverify=false
更改回默认的安全证书
终端输入:
git config --global --unset http.sslverify
查看
(base) l@l:~/f/PDet$ git config --list safe.directory=/home/l/bladedisc safe.directory=/home/l/EasyCV [email protected] user.name=z core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
因为修改安全证书不是一个安全的行为,建议上传好文件后,修改回默认的安全状态!!!!
总结
以上就是解决git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.的一个方法!!!