How to setup an SSL Certificate for Free

From Brian Nelson Ramblings
Jump to: navigation, search

Step 1 - Install mod_ssl

Lets first start by making sure that mod_ssl is installed.

We are setting up this free ssl on apache/mod_ssl

yum install mod_ssl openssl

Yum will let you know if the software has already been installed on the server

Step 2 - Generate your private key / CSR File

Generate your private key first

openssl genrsa -out 2048

Now lets generate the CSR file

openssl req -new -key -out

This step is optional - Generate a self-signed SSL certificate

openssl x509 -req -days 365 -in -signkey -out

Step 3 - Get your Free SSL Certificate for 90 days


You will need that output to order your Free SSL

Now visit

Step 4 - Add to your vhost file

<VirtualHost *:443>
       SSLEngine on
       SSLCertificateFile /path/to/
       SSLCertificateKeyFile /path/to/
       SSLCertificateChainFile /path/to/
       <Directory /path/to/your/site/>
       AllowOverride All
       DocumentRoot /path/to/your/site/

Step 5 - Configure Firewall to allow port 443

iptables -A INPUT -p tcp --dport 443 -j ACCEPT
/sbin/service iptables save
iptables -L -v

Now your site is ready to accept credit cards or server content on Facebook pages