尝试克隆存储库时出现SSL错误 [英] Getting SSL error when attempting to clone a Stash repository

查看:190
本文介绍了尝试克隆存储库时出现SSL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图克隆托管在存储中的git存储库,但没有运气。



我得到以下错误:

 致命:无法访问'https://xxx@stash.xxx.com/scm/yyy/yyy.git/':SSL证书问题:无效的证书链

我证实我可以通过登录Stash并通过浏览器查看它来访问存储库。



我还使用 ssh-add 加载了该​​存储库的私钥。

解决方案

<解决它! (从这个问题获得一点帮助,但略微)
$ b


  1. 浏览Stash中的存储库。


  2. 点击地址栏中的小'https'图标。点击显示证书。将小小的证书图标拖到桌面上。


  3. 打开钥匙串访问实用程序(键入到Finder中)。在钥匙串列表中,选择粗体项目,然后在类别下选择证书。


  4. 将证书从将桌面放入列表中,以便将其添加到列表中。

  5. 右键单击证书,单击获取信息。展开信任部分(单击小三角形),然后在顶部下拉列表中选择始终信任。关闭窗口并确保更改得到保存。



I'm attempting to clone a git repository hosted in Stash, but having no luck.

I get the following error:

fatal: unable to access 'https://xxx@stash.xxx.com/scm/yyy/yyy.git/': SSL certificate problem: Invalid certificate chain

I confirmed that I have access to the repository by logging into Stash and viewing it through my browser.

I also loaded the private key for that repository using ssh-add.

解决方案

Solved it! (With a little help from this question, but a slightly different solution.)

  1. Browse to the repository in Stash.

  2. Click the little 'https' icon in the address bar. Click Show Certificate. Drag the little certificate icon onto the desktop.

  3. Open the Keychain Access utility (type it into Finder). In the Keychains list, select the bold item, and under Category, select Certificates.

  4. Drag the certificate from the desktop into the list, so that it gets added.

  5. Right-click the certificate, click Get Info. Expand the Trust section (click the little triangle) and in the top drop-down, select Always Trust. Close the window and ensure the changes get saved.

这篇关于尝试克隆存储库时出现SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆