if we want to setup a site in https://localhost:8643
setup a website in
/var/lib/tomcat5/webapps
then in the /etc/tomcat5
gedit server.xml
generate a line in server.xml;
<Connector port="8643" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
restart the tomcat5
service tomcat5 restart
at this time, if we open
https://localhost:8643
we can not open a website
in the home of root:
root@raid932client ~]# $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -validity 3650 -keysize 2048
generate a .keystore in the $HOME directory.
then we will be able to open
https://localhost:8643