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:
sudo make mycert.pem
/etc/httpd/conf.d/ssl.confand update the following items:
SSLCACertificateKeyFileas follows: (I think this was supposed to happen automagically.)
/etc/pki/tlsand created the symbolic link using the next line.
sudo ln -s certs/mycert.pem mycert.pem
There, now you have a self-signed certificate for your apache virtualhosts.