使用本身生成SSL证书时,Git不能工做之解决办法

git clone https://....git

报错,说证书校验有问题:windows

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

最简单的解决方法是加一个环境变量:spa

Linux下:code

export GIT_SSL_NO_VERIFY=1 

windows下:server

  

set GIT_SSL_NO_VERIFY 1 


git 也要设置一下:ssl

git config --global http.sslVerify false
相关文章
相关标签/搜索