在Visual Studio中,我想从gitlab的存储库中提取一些更改,但这给了我一个错误: Git失败并出现致命错误。无法访问“ https://gitlab...git/ ”:SSL证书问题:证书已过期
如何生成新证书并将其添加到VS?我对gitlab没有任何经验。
Visual Studio应该使用Windows的Git。
如果可以导出私有GitLab服务器的证书链,则可以将其添加到ca-bundle.crt
git文件夹中的文件中C:\path\to\Git\\usr\ssl\certs
。
在cmd中,我使用command生成了密钥
ssh-keygen -t rsa -C "email@email.com"
。然后,我将文件内容复制C:\Users\dmitr\.ssh\id_rsa.pub
到gitlab的用户设置中,添加了键的标题并按下了添加按钮。我还应该做其他事情吗?现在还是不行@DimaKozyr ssh-keygen与ssl证书(community.letsencrypt.org/t/…)没有关系。您需要从浏览器中导出证书链(help.duo.com/s/article/2222?language=zh_CN)