]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/templates/default/nginx.conf.erb
nginx: Add ssl_stapling validation
[chef.git] / cookbooks / nginx / templates / default / nginx.conf.erb
index 4b2c15fa0165eaeab3ca644cc9103597068c8ace..ae0d8bd418e3ba527f6ec6092a75f6e67094954b 100644 (file)
@@ -40,6 +40,11 @@ http {
     ssl_session_cache shared:SSL:50m;
     ssl_session_timeout 30m;
     ssl_stapling on;
+
+    # Validate the stapling response is signed by a trusted certificate
+    ssl_stapling_verify on;
+    ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
+
     ssl_dhparam /etc/ssl/certs/dhparam.pem;
     resolver <%= @resolvers.join(" ") %>;
     resolver_timeout 5s;