Get SSL running on Apache in CentOS

Posted on Sunday August 07, 2011 / by Adam Culp

I was playing with a new virtual server that had CentOS installed on it recently, and wanted to get SSL working for Apache. Since I was only setting up a development server I really didn't need to purchase a certificate and decided to use a self-signed certificate. Here is what I did:

First I needed to get 'make' and 'mod_ssl' running to allow for this. (I use sudo but you could login as su)

sudo yum install make
sudo yum install mod_ssl

Next I did the following steps:

There, now you have a self-signed certificate for your apache virtualhosts.