|
ġ ȯ
OS : CentOS 5.4
Web Server : Apache 2.2.16
|
|
ġ Ȯ
̳뼭Ʈκ ġ ؿ մϴ.
: [θ].crt
ü : bundle.crt
|
|
|
|
[root@localhost httpd]# ps -ef | grep httpd
root 13397 1 2 11:15 ? 00:00:00 /usr/local/apache/bin/httpd
apache 13398 13397 0 11:15 ? 00:00:00 /usr/local/apache/bin/httpd
apache 13399 13397 0 11:15 ? 00:00:00 /usr/local/apache/bin/httpd
|
|
|
|
|
|
|
|
|
|
[root@localhost httpd]# vi $APACHE_HOME/conf/httpd.conf
() $APACHE_HOME ġ ġ θ մϴ.
httpd.conf Ʒ ִ Ȯ մϴ.
ġ ġ ȯ濡 conf.d/ssl.conf extra/httpd-ssl.conf Ǿ ֽϴ.
LoadModule ssl_module modules/mod_ssl.so
# VirtualHost ϱ #
# ġ conf.d/ssl.conf Ȥ extra/httpd-ssl.conf ϸ Ǿ ֽϴ.#
[root@localhost httpd]# vi $APACHE_HOME/conf.d/ssl.conf
(߷)
Listen 443 # SSL ƮȮ #
(߷)
DocumentRoot /var/www/html
ServerName www.innocert.co.kr
SSLEngine on
SSLCertificateFile /usr/local/apache/ssl/www.innocert.co.kr.crt # ߱ #
SSLCertificateKeyFile /usr/local/apache/ssl/www.innocert.co.kr.key # Ű #
SSLCertificateChainFile /usr/local/apache/ssl/bundle.crt # ü #
(߷)
մϴ.
|
|
|
|
|
|
|
|
[root@localhost httpd]# vi $APACHE_HOME/bin/apachectl configtest
Syntax OK # #
[root@localhost httpd]# $APACHE_HOME/bin/apachectl restart
Ǵ Ʒ
[root@localhost httpd]# $APACHE_HOME/bin/apachectl startssl
Apache/2.2.3 mod_ssl/2.2.3 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.
Server www.innocert.co.kr:443 (RSA)
Enter pass phrase:[нԷ]
|
|
|
|
|
|
|
|
[root@localhost httpd]# ps -ef | grep httpd
root 13397 1 2 15:45 ? 00:00:00 /usr/local/apache/bin/httpd -k start -DSSL
daemon 13398 13397 0 15:45 ? 00:00:00 /usr/local/apache/bin/httpd -k start -DSSL
daemon 13399 13397 0 15:45 ? 00:00:00 /usr/local/apache/bin/httpd -k start -DSSL
[root@localhost httpd]# netstat -nap | grep httpd
tcp 0 0 :::80 :::* LISTEN 13397/httpd
tcp 0 0 :::443 :::* LISTEN 13397/httpd
|
|
|
|
|