X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fapache2%2Ftemplates%2Fpuppet-config.erb;h=966ff3fecffb860529a1405664123ede8749c15c;hb=1c732b4f31f2b5ea49881f4d96c1730a5c850cfb;hp=d754b1241608cc3a4b9e7b1e60e5601f4a6c1e19;hpb=0682e93d315d687ec13b0b6ec80f28c231628303;p=mirror%2Fdsa-puppet.git diff --git a/modules/apache2/templates/puppet-config.erb b/modules/apache2/templates/puppet-config.erb index d754b1241..966ff3fec 100644 --- a/modules/apache2/templates/puppet-config.erb +++ b/modules/apache2/templates/puppet-config.erb @@ -4,5 +4,31 @@ # this is a list that seems suitable as of 2014-10, when running wheezy. It # probably requires re-visiting regularly. - SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!LOW:!MD5:!EXP:!RC4:!SEED:!DSS + <% if @lsbmajdistrelease <= '7' -%> + SSLCipherSuite ECDH+AESGCM:ECDH+AES256:ECDH+AES128:ECDH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!LOW:!MD5:!EXP:!RC4:!SEED:!DSS + <% else -%> + SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!eNULL:!LOW:!MD5:!EXP:!RC4:!SEED:!DSS + <% end -%> + + <%- if has_variable?("apache2deb9") && apache2deb9 == "true" -%> + SSLUseStapling On + + # the default size is 32k, but we make it 1M. + # | If more than a few SSL certificates are used for the server + # | + # | OCSP responses are stored in the SSL stapling cache. While the + # | responses are typically a few hundred to a few thousand bytes in size, + # | mod_ssl supports OCSP responses up to around 10K bytes in size. With more + # | than a few certificates, the stapling cache size (32768 bytes in the + # | example above) may need to be increased. Error message AH01929 will be + # | logged in case of an error storing a response. + # [ https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html#ocspstapling ] + + SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_stapling(1048576) + SSLStaplingReturnResponderErrors off + <% end -%> + + + + IndexOptions SuppressDescription