美文网首页
【Peer’s Certificate issuer is no

【Peer’s Certificate issuer is no

作者: sytuzhouyong | 来源:发表于2017-06-23 11:34 被阅读2184次

问题##

我在linux服务器上用 git clone 命令去clone github上仓库的时候,git提示如上错误

解决办法##

  1. .gitconfig文件中添加如下配置:
[http]
        sslVerify = false
  1. 使用配置命令:
git config --global http."sslVerify" false

即可

延伸##

可以配置哪些网站需要设置这个属性,哪些网站不需要设置这个属性,配置如下:

[http "https://github.com/"]
    sslVerify = false

配置命令:

git config --global http."https://github.com/".sslVerify false

但是我没有试成功,暂时还不知道原因

相关文章

网友评论

      本文标题:【Peer’s Certificate issuer is no

      本文链接:https://www.haomeiwen.com/subject/bhqccxtx.html