apache ssl: faster timeout on slow OCSP responses
[chef.git] / cookbooks / apache / templates / default / ssl.erb
index ac25cc4bca0a69515a2cc57938f4de98f59a56b9..9f453858b12d4ed71be2ec2e06a062e822dc0fc1 100644 (file)
@@ -6,3 +6,10 @@ SSLCipherSuite aRSA+HIGH:+kEDH:+kRSA:!kSRP:!kPSK:+3DES:!MD5
 SSLCertificateFile /etc/ssl/certs/<%= @certificate %>.pem
 SSLCertificateKeyFile /etc/ssl/private/<%= @certificate %>.key
 SSLCertificateChainFile /etc/ssl/certs/rapidssl.pem
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+
+SSLUseStapling On
+SSLStaplingResponderTimeout 5
+SSLStaplingReturnResponderErrors off
+SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
+<% end -%>