You just need to enter following two commands:
Yourdomain name: mycorp.com
#1: Enerate an SSL key without a passphrase, enter:
#2: Create a self-signed certificate, enter:
openssl genrsa -out /etc/httpd/ssl/mycorp.com.key 1024
openssl req -new -key /etc/httpd/ssl/mycorp.com.key -x509 -out /etc/httpd/ssl/mycorpcom.crt -days 999
My Sample Apache httpd.conf virtual host file
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:CA
Locality Name (eg, city) :CA
Organization Name (eg, company) [Internet Widgits Pty Ltd]:mycorp, LLC
Organizational Unit Name (eg, section) :Sales
Common Name (eg, YOUR name) :
Email Address :firstname.lastname@example.org
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
service httpd restart