First, you need install mod_ssl and openssl via yum
1. Create the key and request:
openssl req -new > new.cert.csr
2. Remove the passphrase from the key (optional):
openssl rsa -in privkey.pem -out new.cert.key
(If you do not remove the passphrase in this step, you are required to
enter the passphrase when you start Apache.)
3. Convert request into signed cert
(If you pass to third-party CA ,such as godaddy.com , paste csr code and wait the cer back) :
5. For example, if you want to restrict the location "http://127.0.0.1/secret"
to be accessed only via SSL, add the following lines to your main Apache
config file /etc/httpd/conf/httpd.conf:
<Location /secret/>
SSLRequireSSL
</Location></p>
6.
/etc/init.d/httpd restart
#------------------------------------------------------------------
Set up Virtualhost (Optional) :