This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
0 Replies Last post: Mar 14, 2012 12:02 PM by Kirill Korepanov  
Kirill Korepanov Newbie 1 posts since
Mar 14, 2012
Currently Being Moderated

Mar 14, 2012 12:06 PM

TeamCity 6.0 troubles, VCS root, TFS via HTTPS, Invalid certificate

Hi, I have an error about invalid certicate when trying to connect TFS Server.

 

ERROR - The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
System.Exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 

Environment Configuration:

 

TC Server: TC v.6.0 (build 15772) installed, MSVS2010 & Team Explorer 2010 not installed, server in domain, for example: tcdomain, local network.

 

TC Agent: TC Agent, MSVS2010 SP1 & TeamExplorer 2010 installed, client machine in same domain: tcdomain and network., agent running with tcdomain\user1 account.

 

TFS Server: TFS 2010 SP1 installed, setting up connection via ssl channel, server in another domain (for example: tfsdomain) and located in WWW (tfsdomain.com), user: tfsdomain/user2. path to collection: https://srv.tfsdomain.com/tfs/test_collection

 

Steps when I trying connect to TFS via TeamExplorer:

Logging on TC Agent machine with credentials tcdomain/user1 and

 

a) open IE with address https://srv.tfsdomain.com/tfs/

b) install certificate from server with credentials tfsdomain/user2.

c) open TFS2010 & TeamExplorer, add new server https://srv.tfsdomain.com/tfs/

and everything work fine.

 

Steps when I trying connect to TFS via TC (VCS root):

Logging on TC Agent machine with credentials tcdomain/user1 and

 

a) run agent service with user tcdomain/user1

b) open IE with address https://srv.tfsdomain.com/tfs/

c) install certificate from server with credentials tfsdomain/user2.

d) open tc web page and build conf,

e) open Version Control Settings page and setting up Checkout mode: Automatically on agent.

f) open Edit VCS Root page with following next params:

- VCS root name:TestTFS

- Type of VCS: Team FoundationServer

- Url: https://srv.tfsdomain.com/tfs/test_collection

- User name: tfsdomain/user2

- Password: ******

- Root: .$/testroot/

 

  and when I pressing button "Test connection" error occured.

 

Thx 4 any help.

 

ps, sorry 4 English

psps, если требуется, могу и на русском написать, будет получше.

More Like This

  • Retrieving data ...