【本地HTTPS】
①.<Connector SSLEnabled=”true” clientAuth=”false” keystoreFile=”C:\tool\apache-tomcat-6.0.35\tomcat.keystore” keystorePass=”1a2s3d4f5g” maxThreads=”150″ port=”443″ protocol=”HTTP/1.1″ scheme=”https” secure=”true” sslProtocol=”TLS”/>
②.<login-config>
<!– Authorization setting for SSL –>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>Client Cert Users-only Area</realm-name>
</login-config>
<security-constraint>
<!– Authorization setting for SSL –>
<web-resource-collection >
<web-resource-name >SSL</web-resource-name>
<url-pattern>/order/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
修改:1.Tomcat放一个EXE程序;
2.修改server.xml 2处8443为443、1处上面①;
3.web底下的web.xml最下面添加如上的②;
以下部分为转载的内容: