ssl.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <IfModule mod_ssl.c>
  2. # Pseudo Random Number Generator (PRNG):
  3. # Configure one or more sources to seed the PRNG of the SSL library.
  4. # The seed data should be of good random quality.
  5. # WARNING! On some platforms /dev/random blocks if not enough entropy
  6. # is available. This means you then cannot use the /dev/random device
  7. # because it would lead to very long connection times (as long as
  8. # it requires to make more entropy available). But usually those
  9. # platforms additionally provide a /dev/urandom device which doesn't
  10. # block. So, if available, use this one instead. Read the mod_ssl User
  11. # Manual for more details.
  12. #
  13. SSLRandomSeed startup builtin
  14. SSLRandomSeed startup file:/dev/urandom 512
  15. SSLRandomSeed connect builtin
  16. SSLRandomSeed connect file:/dev/urandom 512
  17. ##
  18. ## SSL Global Context
  19. ##
  20. ## All SSL configuration in this context applies both to
  21. ## the main server and all SSL-enabled virtual hosts.
  22. ##
  23. #
  24. # Some MIME-types for downloading Certificates and CRLs
  25. #
  26. <IfModule mod_mime.c>
  27. AddType application/x-x509-ca-cert .crt
  28. AddType application/x-pkcs7-crl .crl
  29. </IfModule>
  30. # Pass Phrase Dialog:
  31. # Configure the pass phrase gathering process.
  32. # The filtering dialog program (`builtin' is a internal
  33. # terminal dialog) has to provide the pass phrase on stdout.
  34. SSLPassPhraseDialog builtin
  35. # Inter-Process Session Cache:
  36. # Configure the SSL Session Cache: First the mechanism
  37. # to use and second the expiring timeout (in seconds).
  38. # (The mechanism dbm has known memory leaks and should not be used).
  39. #SSLSessionCache dbm:${APACHE_RUN_DIR}/ssl_scache
  40. SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
  41. SSLSessionCacheTimeout 300
  42. # Semaphore:
  43. # Configure the path to the mutual exclusion semaphore the
  44. # SSL engine uses internally for inter-process synchronization.
  45. # (Disabled by default, the global Mutex directive consolidates by default
  46. # this)
  47. #Mutex file:${APACHE_LOCK_DIR}/ssl_mutex ssl-cache
  48. # SSL Cipher Suite:
  49. # List the ciphers that the client is permitted to negotiate. See the
  50. # ciphers(1) man page from the openssl package for list of all available
  51. # options.
  52. # Enable only secure ciphers:
  53. SSLCipherSuite HIGH:!aNULL
  54. # SSL server cipher order preference:
  55. # Use server priorities for cipher algorithm choice.
  56. # Clients may prefer lower grade encryption. You should enable this
  57. # option if you want to enforce stronger encryption, and can afford
  58. # the CPU cost, and did not override SSLCipherSuite in a way that puts
  59. # insecure ciphers first.
  60. # Default: Off
  61. #SSLHonorCipherOrder on
  62. # The protocols to enable.
  63. # Available values: all, SSLv3, TLSv1, TLSv1.1, TLSv1.2
  64. # SSL v2 is no longer supported
  65. SSLProtocol all -SSLv3
  66. # Allow insecure renegotiation with clients which do not yet support the
  67. # secure renegotiation protocol. Default: Off
  68. #SSLInsecureRenegotiation on
  69. # Whether to forbid non-SNI clients to access name based virtual hosts.
  70. # Default: Off
  71. #SSLStrictSNIVHostCheck On
  72. </IfModule>
  73. LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" ssl_info
  74. LogFormat "%{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%{User-Agent}i\"" ssl_info_browser
  75. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet