can’t start httpd(apache-2.4) with ssl module

 

아파치에 SSL모듈 및 가상호스트 설정후 아래 로그와 함께 아파치가 시작이 되지 않음

 

환경

OS : linux
apache : 2.4

 

로그


[ssl:emerg] [pid 11900] AH02572: Failed to configure at least one certificate and key for notssldomain.com:443
[ssl:emerg] [pid 11900] SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
[ssl:emerg] [pid 11900] AH02312: Fatal error initialising mod_ssl, exiting.
AH00016: Configuration Failed

일단 SSL관련 오류가 발생
특이한 것은 SSL적용 대상이 아닌 도메인에 대해 (notssldomain.com:443) 으로 에러 로그가 기록됨

 

의문

인증서 파일에 문제가 있어도 발생할 수 있는 에러이지만…
아무리 확인을 해봐도 인증서에는 문제가 없고(동일한 환경에서 잘 사용중인 인증서)
환경도 별다른 문제가 없어 보였는데…

 

 

문제점

SSLEngine On

설정이 전역으로 들어간 것이 문제;;;;;;;

 

  • 정상

<VirtualHost *:443>
ServerName ssldomain.com
.
.
SSLEngine on
SSLCertificateFile ....
SSLCertificateKeyFile ....
</VirtualHost>

 

  • 문제

SSLEngine on
.
<VirtualHost *:443>
ServerName ssldomain.com
.
.

SSLCertificateFile ....
SSLCertificateKeyFile ....
</VirtualHost>

 

이건 진짜 별것이 아닌건데…
기억을 못하는 바람에 한참 찾음…
그래서 적어 놔야;;;;;;;

 

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.