Enable OCSP stapling on 14.04 machines
authorTom Hughes <tom@compton.nu>
Tue, 9 Sep 2014 21:38:28 +0000 (22:38 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 9 Sep 2014 21:38:28 +0000 (22:38 +0100)
cookbooks/apache/templates/default/ssl.erb

index ac25cc4..1e9ea31 100644 (file)
@@ -6,3 +6,8 @@ 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
+SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ssl_ocspcache(512000)
+<% end -%>