通过SSL使用我自己的GIT服务器设置TeamCity [英] Setting up TeamCity with my own GIT Server over SSL

查看:362
本文介绍了通过SSL使用我自己的GIT服务器设置TeamCity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我自己的GIT服务器存储库,可以通过HTTPS协议连接。



我试图设置TeamCity连接到我的GIT仓库,但我无法因为有HTTPS协议。

在Eclipse中,我有一个设置sslVerify = false的设置,我可以连接到我的GIT仓库并执行我的任务。



我怎样才能达到TeamCity的一样?

解决方案

As issue TW-30210 举例说明,它可能取决于您使用的TeamCity和Java的版本。



这也取决于您的证书是否自签名。

如果是已签名(并由实际CA证书颁发机构验证),则您需要将其添加到您的Java密钥库(由TeamCity使用):请参阅使用HTTPS访问TeamCi如果你只是想禁用ssl验证,你可以在TeamCity服务器上完成:


$ b



$ b


但这被认为是不好的做法。


I have my own GIT server repository and can be connected via HTTPS protocol.

I am trying to setup TeamCity to connect to my GIT repo but I am unable to because of the HTTPS protocol.

In Eclipse, I have a setting that sets sslVerify=false and I can connect to my GIT repo and perform my task.

How can i achieve the same for TeamCity?

解决方案

As issue TW-30210 illustrates, it can depends on the version of TeamCity and Java you are using.

It also depends if your certificate is self-signed or not.
If is is signed (and validate by an actual CA - Certificate Authority), then you need to add it in your java keystore (used by TeamCity): see "Using HTTPS to access TeamCity server".

If you just want to disable ssl verification, you can do on the TeamCity server:

But that is considered as a bad practice.

这篇关于通过SSL使用我自己的GIT服务器设置TeamCity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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