Here are the steps I followed:
1. Open up a command line window and promote yourself to root using su - and type the following:
openssl genrsa -out sslkey.key 2048
This will create a 2048 bit rsa encrypted key. A 1024 bit key is probably plenty, but why not have a little fun and make a ridiculously high level encryption key. The “sslkey.key” is the filename and you can use whatever you want here.
2. Create a self-signed certificate from that key file that Apache will use to create our https session.
openssl req -new -key sslkey.key -x509 -out sslcert.crt
Again, “sslcert.crt” can be whatever you want. Another good name for these would be yourdomainname.crt
3. Do a little directory organization. You’re going to want to place these two files in a place that makes sense
mkdir /etc/httpd/conf/ssl.crt
mkdir... ... read more >>> thiyagarajanveluchamy.wordpress.com