CentOS 5
Sponsored Link

Configure SSL2015/01/17

 
Configure httpd to use SSL encrypted connection.
[1]
[2] Configure httpd for SSL.
[root@www ~]#
yum -y install mod_ssl
[root@www ~]#
vi /etc/httpd/conf.d/ssl.conf
# line 84: uncomment

DocumentRoot "/var/www/html"
# line 85: uncomment and specify hostname

ServerName
www.srv.world:443
# line 112: change to the one created in [1]

SSLCertificateFile
/etc/pki/tls/certs/server.crt
# line 119: 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 ]

  Access to the test page with https. Following window is shown because Certification File is made by yourdelf, it's no ploblem, Click Ok to proceed.
  Just accessed.
  Install your server's certificates on your PC, then it's possible to access with no error.
  Install certificate.
Matched Content