이 페이지의 이전 버전을 보고 있습니다. 현재 버전 보기.

현재와 비교 페이지 이력 보기

« 이전 버전 2 다음 »

개인 클라이언트 인증서로 접속 가능한 웹서버 설정

Apache HTTPD 2.4 에서 개인 클라이언트 인증서 적용


다음을 httpd.conf 에 추가

  • /secure 밑에 있는 URL은 KREONET CA 가 발급한 클라이언트 인증서가 있어야 접속 가능
  • AAA.BBB.CCC.DDD/32, BBB.CCC.DDD.EEE/32 는 클라이언트 인증서 없어도 접속 가능
SSLVerifyClient      none
SSLCACertificateFile /../kreonet-ca-chain.pem

<Location />
    Require all granted
</Location>

<Location /secure>
    <If     "-R 'AAA.BBB.CCC.DDD/32'">
    </If>
    <ElseIf "-R 'BBB.CCC.DDD.EEE/32'" >
    </ElseIf>
    <Else>
        SSLVerifyClient require
        SSLVerifyDepth 1
    </Else>
</Location>

참고

https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html#accesscontrol

https://httpd.apache.org/docs/2.4/mod/core.html#elseif

https://superuser.com/questions/1055171/apache-and-support-for-per-directory-ca

https://www.cl.cam.ac.uk/~jw35/courses/using_https/html/x640.htm

https://httpd.apache.org/docs/2.4/ssl/ssl_compat.html

  • 레이블 없음