You just need to enter following two commands:
Yourdomain name: mycorp.com
Directory: /etc/httpd/ssl/
#1: Enerate an SSL key without a passphrase, enter:
#2: Create a self-signed certificate, enter:Code:openssl genrsa -out /etc/httpd/ssl/mycorp.com.key 1024
Sample output:Code: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 fileCode: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 []:you@mycorp.com
Restart httpd/Apche:Code:DocumentRoot "/var/www/html/ssl_doc_root/" ServerAdmin you@mycorp.com ServerName www.mycorp.com SSLEngine On SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2: +EXP:+eNULL SSLCertificateFile /etc/httpd/ssl/mycorpcom.crt SSLCertificateKeyFile /etc/httpd/ssl/mycorp.com.key SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
Code:service httpd restart

Reply With Quote