LINUX How to configure of ssl

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 server name
ServerName www.my-server.com:443
# line 105: specify certificate
SSLCertificateFile /etc/pki/tls/certs/server.crt
# line 112: specify certification key
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
[root@www ~]#/etc/rc.d/init.d/httpd restart
Stopping httpd:[ OK ]
Starting httpd:[ OK ]

Comments

Popular posts from this blog

LINUX Move and copy files using SSH

PHP Predefined Variables

Java : Variables Declaring