SSL can be enabled in Tomcat running on Windows by the following procedure :
1. Run the command on the command prompt :
You will receive a set of questions starting with a prompt for a password.
Fill out the details as required and preserve a copy of the questions and their answers for future reference.
Add the following lines in the Tomcat/webapps/ROOT/index.jsp before the beginning of the html tag.
For more details refer this:
answered 30 May '13, 10:26
to set up port forwarding from 8080 to 8443 add the following line to web.xml and also make uncomment the lines in server.xml
lines to add in web.xml :: <security-constraint> <web-resource-collection> <web-resource-name>Everything in https</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
answered 16 Sep '13, 22:35