SSL Certificate Installation in Apache 2.x / Enable SSL/HTTPS on a Joomla

SSL Certificate Installation in Apache 2.2.15 (CentOS 6.7) / Enable SSL/HTTPS on a Joomla 2.5.9

#############################################################

1. First you need to generate a Certificate Signing Request CSR on Apache 2.x

# Openssl req –new  -newkey rsa:2048 –nodes –keyout ajdms.btrp.net.key –out ajdms.btrp.net csr

2. Create /etc/ssl/crt folder
3. Find and Copy ajdms.btrp.net.key file to new created folder /etc/ssl/crt
4. Upload received (if you procured) CRT files  ajdms_btrp_net.crt DigiCertCA.crt to /etc/ssl/crt
5. Edit Add following strings to httpd.conf

# cd /ect/httpd/conf
# vi httpd.conf

VirtualHost 192.168.200.100:443
DocumentRoot /var/www/dms
ServerName ajdms.btrp.net
SSLEngine on
SSLCertificateFile /etc/ssl/crt/ajdms_btrp_net.crt
SSLCertificateKeyFile /etc/ssl/crt/ajdms.btrp.net.key
SSLCertificateChainFile /etc/ssl/crt/DigiCertCA.crt
/VirtualHost

If you don’t have permissions for editing httpd.conf you can use this command

# chmod -R 777 /etc/httpd/conf/

6. Press Esc to exit inserting mode, then type :x to save close vi
7. Test your Apache config before restarting

# apachectl configtest

8. Restart Apache service

# apachectl stop
# apachectl start

#########################################################
Now we need to log into Joomla CPanel to complete HTTPS protocol enabling for Joomla
9. Go to Joomla Admin Panel — File Manager— Root Folder (Using Profiles module, can be downloaded here : http://extensions.joomla.org/extension/core-enhancements/file-management/profiles )
10. Open and add to  .htaccess file following strings

RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
IfModule !mod_ssl.c>
Redirect permanent / https://ajdms.btrp.net

11. Enable SSL function in Joomla. Go to JoomlaAdmin Panel — Global Configuration —  Server—-Force SSL
12. Choose Entire Site
13. Check your web site it has SSL now.