Last active
August 29, 2015 14:03
-
-
Save t0mtaylor/e9f8188b311328352035 to your computer and use it in GitHub Desktop.
SSL Secure Ciphers 2014 for Apache 2.4+
This file contains 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
<IfModule mod_fcgid.c> | |
FcgidMaxRequestLen 1073741824 | |
</IfModule> | |
SSLProtocol -SSLv2 -SSLv3 +TLSv1.2 +TLSv1.1 +TLSv1 | |
#+SSLv3 #Disable SSL 3.0, only IE6/XP uses it - POODLE! https://www.openssl.org/~bodo/ssl-poodle.pdf | |
SSLCompression off | |
SSLHonorCipherOrder on | |
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA128:DHE-RSA-AES128-GCM-SHA384:DHE-RSA-AES128-GCM-SHA128:ECDHE-RSA-AES128-SHA384:ECDHE-RSA-AES128-SHA128:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA384:AES128-GCM-SHA128:AES128-SHA128:AES128-SHA128:AES128-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4 | |
# Use HTTP Strict Transport Security to force client to use secure connections only | |
<If "%{HTTP:Host} in { '2nite.uk.net', 'tommytaylor.co.uk' }"> | |
Header add Strict-Transport-Security "max-age=15768000; preload" | |
</If> | |
<Else> | |
Header add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" | |
</Else> | |
Header always set X-Frame-Options DENY | |
# Header always set X-Content-Type-Options nosniff | |
# OCSP Stapling, only in httpd 2.3.3+ | |
SSLUseStapling on | |
SSLStaplingResponderTimeout 5 | |
SSLStaplingReturnResponderErrors off | |
SSLStaplingCache shmcb:/var/run/ocsp(128000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment