/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
*/ package org.apache.catalina.valves;
/** * 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. * <p> * <b>Note: Ensure that the headers are always set by httpd for all requests to prevent a client spoofing SSL * information by sending fake headers. </b> * <p> * In httpd.conf add the following: * * <pre> * <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" * </IfModule> * </pre> * * In server.xml, configure this valve under the Engine element in server.xml: * * <pre> * <Engine ...> * <Valve className="org.apache.catalina.valves.SSLValve" /> * <Host ... /> * </Engine> * </pre>
*/ publicclass SSLValve extends ValveBase {
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.