Skip to content

Instantly share code, notes, and snippets.

@funnylookinhat
Created June 24, 2015 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funnylookinhat/d0cfc34c76183e3f9c39 to your computer and use it in GitHub Desktop.
Save funnylookinhat/d0cfc34c76183e3f9c39 to your computer and use it in GitHub Desktop.
ssl.conf - Good practice Apache2 SSL config
<IfModule mod_ssl.c>
SSLRandomSeed startup builtin
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect builtin
SSLRandomSeed connect file:/dev/urandom 512
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
SSLSessionCacheTimeout 300
# Mutex file:${APACHE_LOCK_DIR}/ssl_mutex ssl-cache
SSLCipherSuite HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4
SSLHonorCipherOrder on
SSLProtocol All -SSLv2 -SSLv3
# SSLInsecureRenegotiation on
# SSLStrictSNIVHostCheck On
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment