Securing Apache with SSL

By | August 18, 2016

Let’s install mod24_ssl

sudo yum install mod24_ssl

And generate private key + CSR

openssl req -nodes -newkey rsa:2048 -keyout /etc/pki/tls/private/localhost.key -out server.csr

don’t forget to copy this file in save location ! /etc/pki/tls/private/localhost.key

if we got our purchased SSL certyficate, we have to create file with it. Usually you have to marge all of them to one file:

cat spidersoft_com_au.crt > spidersoft_com_au.crt.bundle

now we have to make couple small amends in /etc/httpd/conf.d/ssl.conf file.


DocumentRoot "/var/www/html"
SSLCertificateFile /etc/pki/tls/certs/spidersoft_com_au.crt.bundle
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key



Don’t forget to check if your certificate was installed properly. I’m using this website