Microsoft MVP성태의 닷넷 이야기
Team Foundation Server: 6. HTTPS를 통한 Team Server 접근 [링크 복사], [링크+제목 복사],
조회: 16846
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

환경 : Single-server TFS 설치, 초기에 HTTP로 TFS 설정



보안상의 이유로 인해, HTTPS 채널을 사용한다는 것은 매우 중요한 의미를 갖습니다.
더군다나, 그 대상이 바로 하나의 "프로젝트"이니 그 중요성은 새삼 강조할 필요도 없을 것입니다.

하지만, 보안 채널을 사용하기 전에 한가지 분명히 해둬야 할 것이 있습니다.
그것은 바로, 해당 TFS를 외부 인터넷에서 접근해야 할 필요성이 있느냐는 것입니다. 왜냐하면, 보안 채널을 사용하는 것이 과히 쉽지 않은 선행 단계를 필요로 하기 때문입니다.

여기서는, 그것이 꼭 필요하다는 가정하에 어떻게 TFS를 HTTPS로 접근할 수 있는 지에 대한 설명을 할 것입니다.
주제가 TFS이니 만큼, Certificate Service에 대한 부분은 이미 웬만큼 알고 있다는 가정하에 진행을 하겠습니다.

1. Certificate Service로부터 IIS 웹 사이트용 인증서를 받아냅니다.
주의할 것은, 이때 사이트 명을 정확히 설정해야 한다는 것입니다. 이 사이트 이름이 틀리게 되면 앞으로의 https 설정에서 예기치 못한 오류를 만날 수 있습니다. 따라서, 만약 TFS 서버에 대한 접근 URL이 "www.sysnet.pe.kr"이라면, 반드시 그 이름으로 인증서를 요청해야 합니다. 이로 인해, 한 가지 어려워지는 것이 있는데, 단순히 http 프로토콜만으로 통신할 때에는 TFS 서버명을 컴퓨터명 / DNS / IP를 사용하는 것이 가능했지만, HTTPS로 통신하려고 하면 인증서에 명시된 DNS 명으로만 TFS 서버를 등록해서 사용할 수 있습니다.

2. HTTPS 인증서를 IIS 서버의 Team Foundation Server 사이트에 등록합니다. 그후, IIS 사이트 속성창 / 디렉터리 보안 탭에서 "보안 채널 필요"을 선택해 둡니다. 포트 설정은 다음과 같습니다. (물론, 포트 번호는 임의로 설정이 가능합니다.)

HTTPS 포트 설정

3. 이제, 클라이언트에서 해당 TFS 서버를 다음과 같이 등록합니다.

HTTPS를 통한 TFS 서버 등록

4. 자, 이때부터 기존 HTTP를 통해서 접속하던 모든 TFS Team Explorer 접속에서 오류가 발생하게 됩니다. 클라이언트 측 에러 내용은 다음과 같습니다.

Error TF31005: Team Foundation cannot retrieve the list of team projects
because it is not able to connect to Team Foundation Server ServerName.

이 오류와 관련해서, TFS 측 이벤트 로그에는 다음과 같은 오류들이 남겨질 수 있습니다.

TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to 

your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 2006-06-04 오후 2:01:54
Machine: WIN2003BASE
Application Domain: TFSServerScheduler.exe
Assembly: Microsoft.TeamFoundation.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
  Process Name: TFSServerScheduler
  Process Id: 1920
  Thread Id: 2056
  Account name: WIN2003BASE\TFSService

Detailed Message: TF50801: The TFSServerScheduler service did not initialize. 
The Team Foundation Registration Service returned the 

following error: The underlying connection was closed: An unexpected error occurred on a receive.

자세한 정보는 http://go.microsoft.com/fwlink/events.asp에 있는 도움말 및 지원 센터를 참조하십시오.

이미 기존 TFS 서버 설치가 http를 기준으로 설정되어 있기 때문에, 이제부터 그와 관련된 값들을 모두 변경시켜 주어야 합니다.

5. 파일 내용 수정 - C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\TFSServerScheduler\TFSServerScheduler.exe.config

------------------------------ 변경 전 ------------------------------
  <appSettings>
  <add key="BisDomainUrl" value="http://WIN2003BASE:8080" />
  </appSettings>


------------------------------ 변경 후 ------------------------------
  <appSettings>
  <add key="BisDomainUrl" value="https://www.sysnet.pe.kr:8080" />
  </appSettings>
관련 Q&A : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=220595&SiteID=1

6. 파일 내용 수정 - C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\TFSServerScheduler\ScheduledServices.xml

------------------------------ 변경 전 ------------------------------
<?xml version="1.0" encoding="us-ascii"?><tools><tool url="https://www.sysnet.pe.kr:8080/Warehouse/v1.0/WarehouseController.asmx" 
lastrun="2006:6:4:10:38:58" /></tools>


------------------------------ 변경 후 ------------------------------
<?xml version="1.0" encoding="us-ascii"?><tools><tool url="https://www.sysnet.pe.kr:8080/Warehouse/v1.0/WarehouseController.asmx" 
lastrun="2006:6:4:10:38:58" /></tools>


7. 파일 내용 수정 - C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Web.Config

------------------------------ 변경 전 ------------------------------
        <!-- TFS name and Url information -->
        <add key="TFSNameUrl" value="http://WIN2003BASE:8080" />
        <add key="TFS Name" value="WIN2003BASE"/>


------------------------------ 변경 후 ------------------------------
        <!-- TFS name and Url information -->
        <add key="TFSNameUrl" value="https://www.sysnet.pe.kr:8080" />
        <add key="TFS Name" value="www.sysnet.pe.kr"/>

8. 파일 내용 수정 - C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\CoverAn\CoverAn.exe.config

------------------------------ 변경 전 ------------------------------
    <appSettings>
        <!-- TFS name and Url information -->
        <add key="TFSNameUrl" value="http://WIN2003BASE:8080" />
        <add key="TFS Name" value="WIN2003BASE"/>
    </appSettings>

------------------------------ 변경 후 ------------------------------
    <appSettings>
        <!-- TFS name and Url information -->
        <add key="TFSNameUrl" value="https://www.sysnet.pe.kr:8080" />
        <add key="TFS Name" value="www.sysnet.pe.kr"/>
    </appSettings>

9. 파일 내용 수정 - C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\VersionControl\App_Data\ProxyStatistics.xml

------------------------------ 변경 전 ------------------------------
      <Uri>http://win2003base:8080/</Uri>

------------------------------ 변경 후 ------------------------------
      <Uri>https://www.sysnet.pe.kr:8080/</Uri>

10. 위와 같이 수정하고 나서, 저 같은 경우에는 시스템을 재부팅해주었습니다. 이후로는 https를 통해서 정상적으로 접속이 되었고, 현재까지는 Team Build까지 아무런 문제없이 수행하고 있습니다. 하지만, 어찌된 일인지 다음과 같은 형식의 이벤트 로그 경고가 2개의 URL에 대해서 여전히 사라지지 않고 있습니다.

http://win2003base:8080/WorkItemTracking/v1.0/Integration.asmx
http://win2003base:8080/VersionControl/V1.0/Integration.asmx

보시는 것처럼, 어딘가 여전히 win2003base로 되어 있는 요청을 전달하는 URL이 있는데, 저로서는 어디에서 발생하는지 찾아낼 수 없었습니다.

======= 오류 =======
TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 2006-06-04 오후 4:07:27
Machine: WIN2003BASE
Application Domain: /LM/W3SVC/3/Root/services-1-127939104141449802
Assembly: Microsoft.TeamFoundation.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
  Process Name: w3wp
  Process Id: 3940
  Thread Id: 2156
  Account name: WIN2003BASE\TFSService

Detailed Message: TF50280: Could not connect to the service at: 'http://win2003base:8080/WorkItemTracking/v1.0/Integration.asmx'. Check the service configuration.
Full Exception:
The underlying connection was closed: An unexpected error occurred on a receive.
Exception Message: The underlying connection was closed: An unexpected error occurred on a receive. (type WebException)

Exception Stack Trace:    at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.TeamFoundation.Server.NotificationClient.Notify(String eventXml, String tfsIdentityXml, SubscriptionInfo SubscriptionInfo)

Inner Exception Details:

Exception Message: Unable to read data from the transport connection: 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다. (type IOException)

Exception Stack Trace:    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)

Inner Exception Details:

Exception Message: 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다 (type SocketException)

Exception Stack Trace:    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)



자세한 정보는 http://go.microsoft.com/fwlink/events.asp에 있는 도움말 및 지원 센터를 참조하십시오.

[연관 글]






[최초 등록일: ]
[최종 수정일: 6/25/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2007-07-14 08시51분
*** HTTPS 접근 방법 설정은 MSDN 도움말을 참고하십시오.
kevin25

1  2  [3]  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13587정성태3/27/20242046오류 유형: 900. Windows Update 오류 - 8024402C, 80070643
13586정성태3/27/20242838Windows: 263. Windows - 복구 파티션(Recovery Partition) 용량을 늘리는 방법
13585정성태3/26/20242219Windows: 262. PerformanceCounter의 InstanceName에 pid를 추가한 "Process V2"
13584정성태3/26/20242175개발 환경 구성: 708. Unity3D - C# Windows Forms / WPF Application에 통합하는 방법파일 다운로드1
13583정성태3/25/20242130Windows: 261. CPU Utilization이 100% 넘는 경우를 성능 카운터로 확인하는 방법
13582정성태3/19/20242300Windows: 260. CPU 사용률을 나타내는 2가지 수치 - 사용량(Usage)과 활용률(Utilization)파일 다운로드1
13581정성태3/18/20242354개발 환경 구성: 707. 빌드한 Unity3D 프로그램을 C++ Windows Application에 통합하는 방법
13580정성태3/15/20241858닷넷: 2231. C# - ReceiveTimeout, SendTimeout이 적용되지 않는 Socket await 비동기 호출파일 다운로드1
13579정성태3/13/20242087오류 유형: 899. HTTP Error 500.32 - ANCM Failed to Load dll
13578정성태3/11/20242349닷넷: 2230. C# - 덮어쓰기 가능한 환형 큐 (Circular queue)파일 다운로드1
13577정성태3/9/20242625닷넷: 2229. C# - 닷넷을 위한 난독화 도구 소개 (예: ConfuserEx)
13576정성태3/8/20242044닷넷: 2228. .NET Profiler - IMetaDataEmit2::DefineMethodSpec 사용법
13575정성태3/7/20242259닷넷: 2227. 최신 C# 문법을 .NET Framework 프로젝트에 쓸 수 있을까요?
13574정성태3/6/20242126닷넷: 2226. C# - "Docker Desktop for Windows" Container 환경에서의 IPv6 DualMode 소켓
13573정성태3/5/20242042닷넷: 2225. Windbg - dumasync로 분석하는 async/await 호출
13572정성태3/4/20242294닷넷: 2224. C# - WPF의 Dispatcher Queue로 알아보는 await 호출의 hang 현상파일 다운로드1
13571정성태3/1/20242307닷넷: 2223. C# - await 호출과 WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13570정성태2/29/20242238닷넷: 2222. C# - WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13569정성태2/28/20242177닷넷: 2221. C# - LoadContext, LoadFromContext 그리고 GAC파일 다운로드1
13568정성태2/27/20242262닷넷: 2220. C# - .NET Framework 프로세스의 LoaderOptimization 설정을 확인하는 방법파일 다운로드1
13567정성태2/27/20242215오류 유형: 898. .NET Framework 3.5 이하에서 mscoree.tlb 참조 시 System.BadImageFormatException파일 다운로드1
13566정성태2/27/20242304오류 유형: 897. Windows 7 SDK 설치 시 ".NET Development" 옵션이 비활성으로 선택이 안 되는 경우
13565정성태2/23/20242162닷넷: 2219. .NET CLR2 보안 모델에서의 개별 System.Security.Permissions 제어
13564정성태2/22/20242518Windows: 259. Hyper-V Generation 1 유형의 VM을 Generation 2 유형으로 바꾸는 방법
13563정성태2/21/20242562디버깅 기술: 196. windbg - async/await 비동기인 경우 메모리 덤프 분석의 어려움
13562정성태2/21/20242499오류 유형: 896. ASP.NET - .NET Framework 기본 예제에서 System.Web에 대한 System.IO.FileNotFoundException 예외 발생
1  2  [3]  4  5  6  7  8  9  10  11  12  13  14  15  ...