ITPub博客

首页 > 应用开发 > IT综合 > GIT clone报错: SSL certificate problem: unable to get local issuer certificate

GIT clone报错: SSL certificate problem: unable to get local issuer certificate

原创 IT综合 作者:清风艾艾 时间:2018-04-04 10:25:56 0 删除 编辑
    今天,我们项目的私有GIT仓库已经建立好,可以由web页面通过用户名和密码登录查看资料仓库。

    但是,在我的windows本地安装完git客户端,进行远程clone的时候报错,报错信息如下:
$ cd d:
admin@zh MINGW64 /d
$ pwd
/d
admin@zh MINGW64 /d
$ ls
'$RECYCLE.BIN'/      LIBRARY/                      vbback/
'Foxmail 7.2'/      'System Volume Information'/
 Git/                Thunder/
admin@zh MINGW64 /d
$ cd Git
admin@zh MINGW64 /d/Git
$ ls
bin/  etc/           LICENSE.txt        tmp/           unins000.msg
cmd/  git-bash.exe*  mingw64/           unins000.dat   usr/
dev/  git-cmd.exe*   ReleaseNotes.html  unins000.exe*
admin@zh MINGW64 /d/Git
$ mkdir repo_target
admin@zh MINGW64 /d/Git
$ cd repo_target/
admin@zh MINGW64 /d/Git/repo_target
$ ls
admin@zh MINGW64 /d/Git/repo_target
$ git init
Initialized empty Git repository in D:/Git/repo_target/.git/
admin@zh MINGW64 /d/Git/repo_target (master)
$ git clone https://....40.167/...-public/shared/
Cloning into 'shared'...
fatal: unable to access 'https://....40.167/...-public/shared/': SSL certificate problem: unable to get local issuer certificate
admin@zh MINGW64 /d/Git/repo_target (master)
通过网上查看,有人push的时候遇到同样的错误,解释是本地缺少认证,关闭本地的SSL验证即可,操作如下:
$ git config --global http.sslVerify false
admin@zh MINGW64 /d/Git/repo_target (master)
然后再发起clone操作,会弹出一个git的登陆验证的用户名和密码框,输入正确的用户名和密码即可进行clone了:
$ git clone https://....40.167/...-public/shared/
Cloning into 'shared'...
warning: redirecting to https://....40.167/...-public/shared.git/
remote: Counting objects: 5793, done.
remote: Compressing objects: 100% (40/40), done.
Receiving objects:  31% (1852/5793), 106.23 MiB | 124.00 KiB/s



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29357786/viewspace-2152598/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
个人喜欢IT行业,目前从事数据库工作,包括Oracle、mysql、mongodb、sqlserver等数据库的维护,喜欢专研开发技术,尤其对java程序的开发感兴趣。工作经历上,在中国联通系统集成公司、中公网医疗信息技术有限公司做过数据库技术支持;目前在海量数据,负责华东区oracle、mysql、mongodb的维护工作。

注册时间:2015-01-30

  • 博文量
    251
  • 访问量
    544842