Apache + SSL 을 위한 인증서 만들기

[01:27][root@centos][~]$ openssl genrsa -out server.key 2048
[01:28][root@centos][~]$ openssl req -x509 -sha256 -new -days 365 -key server.key -out server.crt

[01:29][root@centos][~]$ ls server.* -al
-rw-r--r-- 1 root root 1241  2월 23 01:28 server.crt
-rw-r--r-- 1 root root  497  2월 23 01:27 server.key
[01:33][root@centos][~]$ cp server.* /usr/local/apache/conf/

옮겼으면 설정을 확인한다
* apache/conf/extra/httpd-ssl.conf
SSLCertificateFile "/usr/local/apache/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache/conf/server.key"
* apache/conf/httpd.conf (주석이 풀려있는지)
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

아파치를 시작해서 확인한다.
[01:35][root@centos][~]$ apachectl start
[01:35][root@centos][~]$
이상없이 시작이 되면 끝이다.


트랙백

이 글과 관련된 글 쓰기 (트랙백 보내기)
TrackbackURL : http://nsys.egloos.com/tb/4173535 [도움말]

덧글

댓글 입력 영역