Microsoft MVP성태의 닷넷 이야기
IIS : 16. 인증서 검증 - CRL 체크 설정 [링크 복사], [링크+제목 복사]
조회: 13824
글쓴 사람
정성태 (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)
1001정성태12/31/200810171.NET : 95. 빌드된 어셈블리를 서명하는 방법 [1]
1000정성태12/29/200810260Code Contracts
999정성태12/17/200811168Visual C++ : 14. Visual Studio 2010 - MSBuild
998정성태12/16/200811978.NET 3.0 : 26. WPF - HostVisual?
997정성태12/10/200811864.NET : 94. Native C++ 클래스를 상속받는 C# 클래스 정의
996정성태12/9/200812253.NET : 93. Document Reflector [1]
995정성태12/1/200811826Visual C++ : 13. Detours 라이브러리
993정성태11/30/200811762.NET 3.0 : 25. C# Extension 의 좋은 활용 예 - 오피스 Interop API Extensions
992정성태11/30/200816839.NET : 92. Application.DoEvents 의 부작용
991정성태11/26/200813930.NET 4.0: 6. Thread Pool 개선
990정성태11/25/200811544개발 환경 구성: 124. Hyper-V 와 도메인 컨트롤러
989정성태11/21/200811038IIS : 24. IIS7 - Process and Thread Identity in ASP.NET
988정성태11/9/200811286.NET 4.0: 5. C# 4.0 새기능들(2008년10월CTP버젼)
987정성태11/5/200811594.NET 4.0: 4. What's New in the BCL in .NET 4.0 [2]
986정성태11/3/200810839.NET 4.0: 3. Dump 디버깅 지원
985정성태10/30/200810531.NET 4.0: 2. .NET 4.0 포스터
984정성태10/30/200810894.NET 4.0: 1. No PIA
983정성태10/29/200810837Visual C++ : 12. Visual C++ 10
982정성태10/29/200812208.NET : 91. WPF Toolkit
981정성태10/27/200811235.NET : 90. Microsoft Chart control for .NET Framework
980정성태10/24/200811067Debug : 38. StackOverflow Notifier
979정성태10/24/200810649SDK : 15. ESENT (Extensible Storage Engine) API in the Windows SDK
978정성태10/23/200810961TFS : 170. TeamReview 도구
977정성태10/15/200813043.NET : 89. DotNetZip - ZIP 압축을 위한 닷넷 라이브러리
976정성태10/15/200810749TFS : 169. tf.exe 명령어 - workspaces /remove 와 workspaces /delete 의 차이
975정성태10/9/200810671.NET : 88. ClickOnce에서 .application 파일을 다운로드 하려고 할 때.
1  2  3  4  5  6  7  [8]  9  10  11  12  13  14  15  ...