...
...
SSL Installation
Normally, tomcat runs using http on port 8080. Tomcat can be configured to use another port, as well as be configured to use https.
After installation is complete you may set up https. This guide assumes you have knowledge of SSL.
Your certificate needs to be imported into a keystore with the alias tomcat. The file $TOMCAT_HOME/conf/server.xml needs to be updated to indicate that tomcat should use SSL. An example of lines that should be added/modified are:
Code Block | ||||
---|---|---|---|---|
| ||||
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" |
...
maxThreads="150" scheme="https" secure="true" |
...
keystoreFile="/var/lib/tomcat7/conf/tomcat.keystore" |
...
keystorePass ="mypassword" |
...
clientAuth="false" sslProtocol="TLS" /> |
Restarting tomcat will now have your mobile server running on
{+}https://yourhost.com:8443/mobileserver+ in mobileserver in addition to the http URL listed in a prior section.
If you do not wish http to be used, comment out the lines which list that connector in the server.xml file.