From: markt Date: Mon, 21 Feb 2011 23:21:09 +0000 (+0000) Subject: Convert to Javadoc comment and add some additional info X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fe1c43ad24e132094cba2d45e00090def5db6d2b;p=tomcat7.0 Convert to Javadoc comment and add some additional info git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1073184 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/valves/SSLValve.java b/java/org/apache/catalina/valves/SSLValve.java index dac656790..e8d145345 100644 --- a/java/org/apache/catalina/valves/SSLValve.java +++ b/java/org/apache/catalina/valves/SSLValve.java @@ -28,22 +28,35 @@ import org.apache.catalina.Globals; import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; -/* - * Valve to fill the SSL informations in the request - * mod_header is used to fill the headers and the valve - * will fill the parameters of the request. +/** + * When using mod_proxy_http, the client SSL information is not included in the + * protocol (unlike mod_jk and mod_proxy_ajp). To make the client SSL + * information available to Tomcat, some additional configuration is required. + * In httpd, mod_headers is used to add the SSL information as HTTP headers. In + * Tomcat, this valve is used to read the information from the HTTP headers and + * insert it into the request.

+ * + * Note: Ensure that the headers are always set by httpd for all requests to + * prevent a client spoofing SSL information by sending fake headers.

+ * * In httpd.conf add the following: - * + *

+ * <IfModule ssl_module>
  *   RequestHeader set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}s"
  *   RequestHeader set SSL_CIPHER "%{SSL_CIPHER}s"
  *   RequestHeader set SSL_SESSION_ID "%{SSL_SESSION_ID}s"
  *   RequestHeader set SSL_CIPHER_USEKEYSIZE "%{SSL_CIPHER_USEKEYSIZE}s"
- * 
- *
- * @author Jean-Frederic Clere
- * @version $Id$
+ * </IfModule>
+ * 
+ * + * In server.xml, configure this valve under the Engine element in server.xml: + *
+ * <Engine ...>
+ *   <Valve className="org.apache.catalina.valves.SSLValve" />
+ *   <Host ... />
+ * </Engine>
+ * 
*/ - public class SSLValve extends ValveBase {