当前位置:   article > 正文

git clone报错SSL证书问题_git clone ssl routines::unsafe legacy

git clone ssl routines::unsafe legacy

问题描述

D:\develop>git clone https://github.com/alibaba/nacos.git
Cloning into 'nacos'...
fatal: unable to access 'https://github.com/alibaba/nacos.git/': SSL certificate problem: unable to get local issuer certificate
D:\develop>
  • 1
  • 2
  • 3
  • 4

这个错误通常是由于Git无法验证GitHub的SSL证书所引起的
解决办法
配置Git证书验证:运行以下命令来禁用SSL证书验证,然后再次尝试克隆代码库:

git config --global http.sslVerify false
  • 1
git clone https://github.com/alibaba/nacos.git
  • 1

D:\develop>git clone https://github.com/alibaba/nacos.git
Cloning into ‘nacos’…
remote: Enumerating objects: 117873, done.
remote: Counting objects: 100% (17455/17455), done.
remote: Compressing objects: 100% (1768/1768), done.
remote: Total 117873 (delta 16010), reused 15903 (delta 15534),
pack-reused 100418 Receiving
objects: 100% (117873/117873), 51.63 MiB | 30.70 MiB/s, done.
Resolving deltas: 100% (49304/49304), done.
Updating files: 100% (2804/2804), done.
D:\develop\nacos>

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号