SSL Configuration
. http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html1. use jdk to generate keystore.
cd ..\JRE1.6.0.30\bin
run keytool -genkey -alias [terry-ssl] -keyalg RSA -keystore [terry.keystore] [-validity 365].
2.congifure tomcat.
cd apache-tomcat-7.0.27\conf\server.xml
change <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="terry.keystore"
keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />
http ---> https
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>