3

我正在从GIT客户端连接到一个 repo,STASH如果我有SSLverify=false,它可以正常工作,但我希望它可以使用SSL

我已完成以下步骤

  1. 使用 Firefox 导入证书并将文件保存在PEM文件git/bin夹下
  2. 设置git config --system http.SSLCAinfocert.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文件不起作用。

任何帮助将不胜感激。

4

0 回答 0