Microsoft MVP성태의 닷넷 이야기
IIS : 16. 인증서 검증 - CRL 체크 설정 [링크 복사], [링크+제목 복사]
조회: 13810
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


인증서 검증 - CRL 체크 설정


CRL 체크 관련해서 전에 말씀을 드렸었지요?

IIS 7에서 클라이언트 측 인증서 사용 시 주의점
; https://www.sysnet.pe.kr/2/0/418

CRL(Certificate Revocation List) 관리
; https://www.sysnet.pe.kr/2/0/414

IE 6/7 측에서도 서버 인증서의 CRL을 체크할 수 있는 옵션이 있는 것처럼, IIS 6/7에서도 클라이언트에서 제공하는 인증서의 CRL을 체크할 수 있는 옵션이 제공됩니다. 아쉽게도 관리 콘솔에서는 그 기능을 제공하지는 않고 간단한 스크립트를 만들어야 가능합니다. 이에 대해서는 다음의 토픽을 참고하십시오.

Client Certificates Authentication - Dirty Trick To Disable CRL Check. For Demos Only!
; http://blogs.msdn.com/alikl/archive/2007/08/14/client-certificates-authentication-dirty-trick-to-disable-crl-check-for-demos-only.aspx

간단히 정리해 보면, IIS 6에서는 다음과 같은 간단한 스크립트릍 통해 가능하고.

Set oWeb = GetObject("IIS://localhost/W3SVC")
   oWeb.CertCheckMode = 1 ' 기본값: 0
   oWeb.SetInfo

관련 레지스트리 경로도 누군가 파악해서 올려놨군요.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\SslBindingInfo\0.0.0.0:443
DefaultSslCertCheckMode
 
Which was defult set to 0, but I changed it to 1 and rebooted (important) and....guess what...it worked!

IIS 7에서는 netsh을 통해서 가능합니다. netsh을 통한 방법은 일단 서버 측에 매핑된 SSL을 제거한 다음, 다시 설정할 때 클라이언트 측 인증서의 CRL 체크 여부를 같이 하는 것 같습니다.

"netsh http show sslcert" will show the details of the existing sslcert

SSL Certificate bindings:
-------------------------

    IP:port                 : 0.0.0.0:443
    Certificate Hash        : ...
    Application ID          : ...
    Certificate Store Name  : ...
    ...

then delete the cert using "netsh http delete sslcert"

and recreate using

netsh http add sslcert ipport=0.0.0.0:443 certhash=... appid=...
certstorename=MY verifyclientcertrevocation=disable

of course, this would require some parsing code to do in a script, would be easier to do using HttpSetServiceConfiguration with HttpServiceConfigSSLCertInfo - http://msdn2.microsoft.com/en-us/library/aa364503.aspx






[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 12/26/2022]


비밀번호

댓글 작성자
 




1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
1154정성태1/16/201220030.NET : 122. msiexec.exe를 닷넷으로 만들어 보면!파일 다운로드1
1153정성태1/2/201226428개발 환경 구성: 146. SYSTEM 권한으로 UI 프로그램 실행하는 방법
1152정성태1/2/201217327.NET : 121. PAARC - Windows Phone PC Controller
1151정성태11/30/201118612.NET : 120. Lua 스크립트와 닷넷의 연동
1150정성태11/9/201118220VS.NET IDE : 61. Game Debugging in Visual Studio 11
1149정성태11/4/201117583.NET : 119. Project2NuGet
1148정성태10/6/201119946Debug : 49. Visual Studio 11 - 커널 디버깅 #1
1147정성태9/17/201120908Windows 8: 1. Windows 8 단축키
1146정성태9/1/201120589SDK : 20. SxSTrace 도구 및 Visual C++ DLL을 함께 배포하는 방법
1145정성태7/5/201120144.NET : 118. Windows Phone 7에서의 DPAPI 사용
1144정성태6/29/201127460.NET : 117. CSV 파일을 다루는 방법 [1]
1143정성태6/23/201118803VS.NET IDE : 60. VS Load Test - 부하 조절
1142정성태6/23/201119784SDK : 19. LastWriteTime 과 ChangeTime 의 구분 [2]
1141정성태6/23/201118304.NET : 116. Entity Framework 4 - Lazy Loading, Eager Loading [1]
1140정성태6/23/201117742개발 환경 구성: 145. Using the multiple NICs of your File Server running Windows Server 2008 (and 2008 R2)
1139정성태6/22/201119235Visual C++ : 18. Visual C++ 2010에 포함된 Asynchronous Agents Library
1138정성태6/12/201117644.NET : 115. HTML 5 Host Application Framework for WP7 "MANGO”
1137정성태3/30/201117825SDK : 18. 파일을 Guid로 식별하는 함수 - OpenFileById
1136정성태3/30/201115343Web : 9. HTTPS 통신과 Keep-Alive 연결 설정
1135정성태3/28/201115872Web : 8. IE 9 - 변경된 Accept 헤더 정책
1134정성태3/28/201114962Debug : 48. Start Debugging with Windbg
1133정성태3/27/201114159Debug : 47. x64 호출 규약에서의 인자 값 찾는 방법
1132정성태3/27/201116397.NET 3.0 : 36. WCF - net.pipe 통신의 실제 Named Pipe 이름 구하는 방법
1131정성태3/27/201115210개발 환경 구성: 144. Windows Server 2008 R2 설치 및 설정
1130정성태3/1/201114976.NET : 114. Axum...
1129정성태2/14/201114599.NET : 113. Running .NET applications in-process using AppDomains
1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...