我正在从GIT
客户端连接到一个 repo,STASH
如果我有SSLverify=false
,它可以正常工作,但我希望它可以使用SSL
。
我已完成以下步骤
- 使用 Firefox 导入证书并将文件保存在
PEM
文件git/bin
夹下 - 设置
git config --system http.SSLCAinfo
为cert.pem
文件
但是当我尝试拉它时会出现错误"SSL certificate problem: unable to get local issuer certificate"
这就是我在我的 git 配置中所拥有的
$ git config --list
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=C:/Program Files (x86)/Git/bin/cert.pem
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
gui.recentrepo=H:/customerSrv
gui.recentrepo=H:/New folder
http.sslcainfo=C:/Program Files (x86)/Git/bin/cert.pem
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=https://***@stash.***.net/scm/at/customersrv.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
http.sslcainfo=C:/Program Files (x86)/Git/bin/cert.pem
PS:我知道服务器使用自签名证书,因此cacert.pem
文件不起作用。
任何帮助将不胜感激。