Kaynağa Gözat

Add OCSP Stapling configuration capabilities to Debian

Document Stapling options in pillar.example
tags/v0.37.4
Javier Bértoli 6 yıl önce
ebeveyn
işleme
06b1606f33
2 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. +15
    -0
      apache/files/Debian/ssl.conf.jinja
  2. +4
    -0
      pillar.example

+ 15
- 0
apache/files/Debian/ssl.conf.jinja Dosyayı Görüntüle

@@ -1,3 +1,6 @@
#
# This file is managed by Salt! Do not edit by hand!
#
<IfModule mod_ssl.c>

# Pseudo Random Number Generator (PRNG):
@@ -81,6 +84,18 @@
# Default: Off
#SSLStrictSNIVHostCheck On

{% set use_stapling = salt['pillar.get']('apache:ssl:SSLUseStapling', 'Off') %}
{% if use_stapling == 'On' %}
# Stapling configuration
# Default: Off
#
# See https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html for more details
# Defaults values taken from https://mozilla.github.io/server-side-tls/ssl-config-generator/
SSLUseStapling {{ use_stapling }}
SSLStaplingResponderTimeout {{ salt['pillar.get']('SSLStaplingResponderTimeout', '5') }}
SSLStaplingReturnResponderErrors {{ salt['pillar.get']('SSLStaplingReturnResponderErrors', 'Off') }}
SSLStaplingCache {{ salt['pillar.get']('SSLStaplingCache', 'shmcb:/var/run/ocsp(128000)') }}
{% endif %}
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

+ 4
- 0
pillar.example Dosyayı Görüntüle

@@ -311,6 +311,10 @@ apache:
SSLCipherSuite: 'HIGH:!aNULL'
SSLHonorCipherOrder: 'Off'
SSLProtocol: 'all -SSLv3'
SSLUseStapling: 'Off'
SSLStaplingResponderTimeout: '5'
SSLStaplingReturnResponderErrors: 'Off'
SSLStaplingCache: 'shmcb:/var/run/ocsp(128000)'

# ``apache.mod_remoteip`` formula additional configuration:
mod_remoteip:

Yükleniyor…
İptal
Kaydet