Getting SSL error when attempting to clone a Stash repository

血红的双手。 提交于 2019-12-06 12:00:26

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/23208426/getting-ssl-error-when-attempting-to-clone-a-stash-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!