아파치 설정 파일(httpd.conf)에서 아래와 같은 부분의 주석을 해제합니다.
Include conf/extra/httpd-ssl.conf
그리고 아파치 디렉토리의 conf/extra/httpd-ssl.conf를 수정합니다.
DocumentRoot "/home/example"
ServerName xxxx.xx.xx
SSLCertificateFile "/usr/local/apache2/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache2/conf/self.key"
주로 위와 같은 부분들을 자신의 환경에 맞게 수정하면 되겠습니다.
그리고, SSLCertificateFile 이나 SSLCertificateKeyFile 같은 파일들은 생성을 해주어야 하는데,
인증서 파일입니다. 유료로 인증서를 발급 받는 방법이 있고,
http://www.comodossl.co.kr/Certificate/SSL-Application-Stages.aspx
위 사이트 보시면, 키 생성 및 인증서 생성 등의 과정을 볼 수 있습니다.
"셀프 사인 인증서" 라는 것이 있습니다.
1. 개인쌍(개인키, 공개키) 생성
openssl genrsa -des3 -out 키이름.key 1024
2. 셀프사인 인증서 생성
openssl req -new -x509 -nodes -sha1 -days 365 -key 키이름.key -out 인증서이름.crt
참고한 곳
https://www.sulinux.net/bbs/board.php?bo_table=qna_2&wr_id=4617&page=2
Include conf/extra/httpd-ssl.conf
그리고 아파치 디렉토리의 conf/extra/httpd-ssl.conf를 수정합니다.
DocumentRoot "/home/example"
ServerName xxxx.xx.xx
SSLCertificateFile "/usr/local/apache2/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache2/conf/self.key"
주로 위와 같은 부분들을 자신의 환경에 맞게 수정하면 되겠습니다.
그리고, SSLCertificateFile 이나 SSLCertificateKeyFile 같은 파일들은 생성을 해주어야 하는데,
인증서 파일입니다. 유료로 인증서를 발급 받는 방법이 있고,
http://www.comodossl.co.kr/Certificate/SSL-Application-Stages.aspx
위 사이트 보시면, 키 생성 및 인증서 생성 등의 과정을 볼 수 있습니다.
"셀프 사인 인증서" 라는 것이 있습니다.
1. 개인쌍(개인키, 공개키) 생성
openssl genrsa -des3 -out 키이름.key 1024
2. 셀프사인 인증서 생성
openssl req -new -x509 -nodes -sha1 -days 365 -key 키이름.key -out 인증서이름.crt
참고한 곳
https://www.sulinux.net/bbs/board.php?bo_table=qna_2&wr_id=4617&page=2
─ tag https
rss