How To SSL

To revoke the pass phrase if the key is compromised,
openssl rsa -in server.key -out server.pem
Step one : create the key:
openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024
Step Two : Generate the CSR
openssl req -new -key server.key -out server.csr
Step Three : Generate the Self Signed Certificate
openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt
Step Four : Install the Private Key and Certificate (Apache Configuration)
# SSL Virtual Hosts

  
  ServerAdmin webmaster@domain.com
  DocumentRoot /usr/local/apache/share/htdocs
  ServerName www.domain.com
  ScriptAlias /cgi-bin/ /usr/local/apache/share/htdocs/cgi-bin/
  SSLEngine on
  SSLCertificateFile    /usr/local/apache/etc/ssl.crt/server.crt
  SSLCertificateKeyFile /usr/local/apache/etc/ssl.key/server.pem
  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
  CustomLog /usr/local/apache/var/log/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  


Template and Content © Joe Lewis