Created
August 26, 2010 11:15
-
-
Save workmad3/551239 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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