회원가입| 아이디/비밀번호
 
Ȩ > ̵ > SSLġ̵

Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/innocert/www/guide/install_view.html on line 37
Apache (mod_ssl)

  Apache SSL ġ

  [STEP#1] ġ Ȯϱ.
  [STEP#2] ȯ .
  [STEP#3] .
  [STEP#4] Ȯ.


 ġ ȯ
  OS :  CentOS 5.4
  Web Server :  Apache 2.2.16
 ġ Ȯ
  ̳뼭Ʈκ ġ ؿ մϴ.

   : [θ].crt
  ü : bundle.crt

[STEP#1] ġ Ȯϱ
[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
 
[STEP#2] ȯ
 Apache 2.2.xx    Apache 2.0.xx    Apache 1.3.xx  
[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   # ü #
(߷)

մϴ.

 
[STEP#3]
[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:[нԷ]

 
[STEP#4] Ȯ
[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