Atlassian Stash和git SSL问题

时间:2013-11-21 15:08:36

标签: git bitbucket-server

我正在GIT客户端与STASH中的回购邮件进行连接,如果我SSLverify=false,则可以正常工作,但我希望它可以与SSL一起使用。< / p>

我已完成以下步骤

  1. 使用Firefox导入证书并将PEM文件保存在git/bin文件夹
  2. git config --system http.SSLCAinfo设置为cert.pem文件
  3. 但是当我尝试拉它时会出现错误"SSL certificate problem: unable to get local issuer certificate"

    这就是我在git config中的内容

    $ 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文件不起作用。

    任何帮助将不胜感激。

0 个答案:

没有答案
相关问题