Microsoft MVP성태의 닷넷 이야기
IIS : 16. 인증서 검증 - CRL 체크 설정 [링크 복사], [링크+제목 복사]
조회: 13721
글쓴 사람
정성태 (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)
1178정성태11/2/20222678개발 환경 구성: 153. 10기가비트 홈 네트워크 구축하기
1177정성태11/12/20213913.NET : 131. RIP Copy and Paste from Stackoverflow! (+Trojan Source Solution)
1176정성태8/6/20217008.NET : 130. Developing a realtime full stack app with .NET, Angular, and MongoDB
1175정성태5/24/20214742.NET : 129. Create a colored CLI with System.CommandLine and Spectre
1174정성태10/16/20205382Debug : 53. Debugging services startup in Svchost from a kernel mode debug session
1173정성태9/11/20205555Windows 7: 5. Group Policy Administrative Templates Catalog [1]
1172정성태9/8/20205613.NET : 128. How to Write a Terminal Services Add-in in Pure C#
1171정성태10/10/20198168개발 환경 구성: 152. 비주얼 스튜디오를 인터넷 연결이 안 되는 환경에서 설치하는 방법
1170정성태8/8/20197668개발 환경 구성: 151. [DevOps] Slack에서 Visual Studio Team Service 빌드 결과 알림 받기
1169정성태10/15/20189792.NET : 127. Open-source library guidance
1168정성태7/13/201711688.NET : 126. The UWP Community Toolkit is 1 1/2! (v1.5) [2]
1167정성태6/27/201711435VS.NET IDE : 62. Visual Studio 2017의 디버깅 팁 7가지
1166정성태10/1/201511978.NET : 125. Building a large text file editor [1]파일 다운로드1
1165정성태8/20/201512215개발 환경 구성: 150. Windows Time Synchronization The Battle Continues
1164정성태4/3/201513660개발 환경 구성: 149. IE 개발자 도구와 같은 기능을 제공하는 오픈 소스 도구 - IE Diagnostics Adapter
1163정성태2/20/201515134Debug : 52. DbMon.NET - A simple .NET OutputDebugString capturer
1162정성태1/15/201415913Debug : 51. Psscor2 / Psscor4
1161정성태1/11/201320042개발 환경 구성: 148. 관리자 권한의 cmd.exe 단축아이콘 실행할 때 시작 폴더 지정
1160정성태1/3/201318594마이크로소프트 개발 플랫폼 총정리
1159정성태9/12/201217814Debug : 50. "DbgHost Type Library"를 이용한 .NET 내부 정보 열람
1158정성태4/4/201218459개발 환경 구성: 147. Microsoft Store를 거치지 않고 LOB 프로그램을 배포하는 방법
1157정성태3/30/201218893.NET : 124. 자바의 File.canWrite 메서드의 C# 버전
1156정성태2/9/201218483.NET : 123. .NET 4.5에서 Workflow Foundation 3을 deprecated 처리
1155정성태2/6/201218560Visual C++ : 19. Parallel Programming, OpenMP 그리고 Win32파일 다운로드1
1154정성태1/16/201219964.NET : 122. msiexec.exe를 닷넷으로 만들어 보면!파일 다운로드1
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...