Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created August 26, 2010 11:15
Show Gist options
  • Select an option

  • Save workmad3/551239 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/551239 to your computer and use it in GitHub Desktop.
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /path/to/certificate.crt
SSLCertificateKeyFile /path/to/certificate.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
openssl genrsa -des3 -out /path/to/certificate.key 1024
openssl req -new -key /path/to/certificate.key -out /path/to/certificate.csr
#Self signing key - you don't really want to do this as it will be an untrusted certificate, but it's fine for testing
openssl x509 -req -in /path/to/certificate.csr -signkey /path/to/certificate.key -out /path/to/certificate.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment