SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 22-11-2018 07:42:45

SeanR
Administrator
Registered: 20-11-2018
Posts: 150

Setup Tomcat to listen on port HTTPS (443)

You will need to edit the conf/server.xml file in the tomcat directory.

Look for the section as seen below:

<!--<Connector port="8443" 
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" /> -->

Uncomment that section (or copy it) and change the port to the port you wish Tomcat to listen for https traffic on.  Normally this is 443

You will need to apply a keystore.  In the following example the jks file is found in the conf directory and is called sxi_cert.jks.  The password is "password"

<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" 
keystoreFile="conf/sxi_cert.jks" keystorePass="password" />

Restart Tomcat and you should be able to connect to your server using https://servername/

Offline

Board footer

Powered by FluxBB