问题描述
在linux 机器上,拉取远程git 仓库时,会报如下错误信息:
Peer’s Certificate issuer is not recognized.
[centos ~]$ git clone https://git.code.com/web/downloader
Cloning into 'downloader'...
fatal: unable to access 'https://git.code.com/web/downloader': Peer's Certificate issuer is not recognized.
解决方案
提示SSL证书错误。这个错误并不重要是系统证书的问题,系统判断到这个行为会造成不良影响,所以进行了阻止,只要设置跳过SSL证书验证就可以了
尝试执行如下指令
$ git config --global http.sslVerify false
然后重新拉取git 远程仓库,输入远程仓库账号,密码即可。
$ git clone https://git.code.com/web/downloader
Cloning into 'downloader'...
Username for 'https://git.code.com': robbie
Password for 'https://robbie@git.code.com':