SSL Certificate on apache

installation and configuration of SSL Certificate on apache



Step  1. Install Mod SSL : - yum install mod_ssl 

Step 2. mkdir /etc/httpd/ssl

Step 3. openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout        

/etc/httpd/ssl/certificate.key -out /etc/httpd/ssl/certificate.crt

Setp 4.  vi /etc/httpd/conf.d/ssl.conf

Step 5. Uncomment the DocumentRoot and ServerName, with your DNS domain name or server IP address 
ServerName example.com:443
SLEngine on
SSLCertificateFile /etc/httpd/ssl/certificate.crt
SSLCertificateKeyFile /etc/httpd/ssl/certificate.key 
Step 5. /etc/init.d/httpd restart 
DONE.... 

Previous Post
Next Post
Related Posts

0 Comments: