]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Bug 62031: Add OCSP Stapling production tuning recommendations to SSL howto
authorRich Bowen <rbowen@apache.org>
Sat, 2 May 2026 20:22:10 +0000 (20:22 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 2 May 2026 20:22:10 +0000 (20:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933726 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/ssl/ssl_howto.xml

index 9f1b2c45d000f7e151c05a6e84a70e9cdc9e4d8e..c4f541a0bd00655663cc11c4826b3639fade7cc6 100644 (file)
@@ -302,6 +302,40 @@ and <directive module="mod_ssl">SSLCertificateFile</directive> for instructions
 for configuring the certificate chain.</p>
 </section>
 
+<section>
+<title>Tuning OCSP Stapling for production</title>
+<p>The default OCSP stapling settings are conservative and may
+result in excessive queries to OCSP responders, timeouts, or
+error responses being cached for too long.  The following settings
+are recommended for production use:</p>
+
+    <highlight language="config">
+# Do not pass OCSP responder errors to clients:
+SSLStaplingReturnResponderErrors off
+
+# Reduce the OCSP responder timeout from the default 10s:
+SSLStaplingResponderTimeout 4
+
+# Cache valid OCSP responses for 48 hours (default: 1 hour).
+# This reduces load on OCSP responders and avoids transient
+# errors caused by frequent queries:
+SSLStaplingStandardCacheTimeout 172800
+
+# Retry failed OCSP queries after 60 seconds instead of the
+# default 600s:
+SSLStaplingErrorCacheTimeout 60
+    </highlight>
+
+<p>These settings address common issues where default OCSP stapling
+produces errors under load — particularly when OCSP responders are
+slow or unreliable.  See the individual directive documentation for
+<directive module="mod_ssl">SSLStaplingReturnResponderErrors</directive>,
+<directive module="mod_ssl">SSLStaplingResponderTimeout</directive>,
+<directive module="mod_ssl">SSLStaplingStandardCacheTimeout</directive>, and
+<directive module="mod_ssl">SSLStaplingErrorCacheTimeout</directive>
+for details.</p>
+</section>
+
 </section>
 <!-- /ocspstapling -->