summaryrefslogtreecommitdiff
path: root/apache2/mods-available/gnutls.conf.diff
blob: d6504c3a758b9d615a693df80ad9335058bdedb5 (plain)
  1. --- gnutls.conf.orig
  2. +++ gnutls.conf
  3. @@ -1,13 +1,19 @@
  4.  <IfModule mod_gnutls.c>
  5. - # The default method is to use a DBM backed cache. It's not super fast, but
  6. - # it's portable and doesn't require another server to be running like
  7. - # memcached
  8. - GnuTLSCache dbm /var/cache/apache2/gnutls_cache
  9. + # Use an SHMCB backed session cache unless you have special needs.
  10. + # (The dbm backend has known memory leaks and should not be used).
  11. + GnuTLSCache shmcb:${APACHE_RUN_DIR}/gnutls_cache(65536)
  12. - # mod_gnutls can optionaly use a memcached server to store SSL sessions.
  13. - # This is useful in a cluster environment, where you want all your servers to
  14. - # share a single SSL session cache
  15. + # An alternative is to use a memcached server to store SSL sessions.
  16. + # This is useful in a cluster environment,
  17. + # where you want all your servers to share a single SSL session cache.
  18. #GnuTLSCache memcache "127.0.0.1 server2.example.com server3.example.com"
  19. + # Require Perfect Forward Secrecy and recent TLS protocol versions
  20. + # This should be supported by all SNI-capable browsers
  21. + # You can validate e.g. at <https://www.ssllabs.com/ssltest/>
  22. + GnuTLSPriorities PFS:-VERS-ALL:+VERS-TLS1.3:+VERS-TLS1.2:%SERVER_PRECEDENCE
  23. +
  24. + GnuTLSOCSPStapling off
  25. +
  26. </IfModule>