CentOS 6
Sponsored Link

Configure SSL Settings2014/08/25

 
Configure SSL settings to use secure encrypt connection.
[1]
[2] Configure httpd for 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.srv.world:443
# line 93: change

SSLProtocol
-All +TLSv1 +TLSv1.1 +TLSv1.2
# 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 ]
[3] If IPTables is running, allow HTTPS port. HTTPS uses 443/TCP.
For "-I INPUT 5" section below, Replace it to your own environment.
[root@www ~]#
iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT

[4] Access to the test page from a client computer with a Web browser via HTTPS. The examample below is the Fiorefix. Following screen is shown because Certificates is own created one, but it's no ploblem, Proceed to next.
[5] Just Accessed on HTTPS.
Matched Content