Visual Studio 2015和Git:基础连接已关闭:无法建立SSL/TLS安全通道的信任关系
我正在使用Gitlab和Visual Studio 2015,当我将更改推送到Gitlab项目时,会收到下一个错误:
I'm using Gitlab and Visual Studio 2015 and when I push my changes to Gitlab projects, I receive the next error:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Inner Exception:
The remote certificate is invalid according to the validation procedure.
要设置我的项目,请执行以下步骤:
To setup my project, I followed the next steps:
- 在Gitlab中创建一个项目.
-
将此项目克隆到我的文件夹中.在这一步中,我需要使用下一条命令:
- Create a project in Gitlab.
Clone this project into my folder. In this step I needed to use the next command:
git config --global http.sslVerify false
我在此文件夹中创建了一个项目.
I created a project into this folder.
据我所知,Visual Studio使用LibGit2来处理安全性检查,并且它具有一个用于验证连接的功能,
As far as I know Visual Studio uses LibGit2 to handle the security checks and while it has one function to validate the connection, it's never used and ifdeffed out.
如果我没记错的话,Visual Studio会包装连接,但是没有设置禁用产品中的SSL安全性.
If I remember correctly Visual Studio wraps the connection, but there is no setting to disable SSL security in the product.
相反
- 为什么不修复证书,SSL证书并不像以前那样昂贵
- 为什么不通过将证书作为受信任的根证书导入Windows证书存储中而将其添加到用户的受信任证书的列表中?
- 如果您的证书有效,为什么不确保使用正确的远程名称