Конфигурация httpd для SSL

Материал из Webko Wiki
Версия от 17:36, 3 июня 2015; Sol (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к навигации Перейти к поиску

Создание SSL сертификата

[root@www ~]# yum -y install mod_ssl
[root@www ~]# vi /etc/httpd/conf.d/ssl.conf
# line 77: uncomment
DocumentRoot "/var/www/html"
# line 78: uncomment and specify the server name
ServerName www.server.world:443
# line 105: change to the one created in [1]
SSLCertificateFile /etc/pki/tls/certs/server.crt
# line 112: change to the one created in [1]
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
[root@www ~]# /etc/rc.d/init.d/httpd restart 
Stopping httpd: [ OK ]
Starting httpd: [ OK ]