]> git.openstreetmap.org Git - chef.git/commitdiff
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 ac25cc4bca0a69515a2cc57938f4de98f59a56b9..1e9ea31da62dc532d9e523f56d5376667ed86a44 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
 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 -%>