ssl.conf 3.1 KB

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