In addition to the creation of a key for HTTPS communication some entries must be made in certain
configuration files. <ServletContainerHome>
stands here for the home directory of the
servlet container. The Tomcat servlet container that is part of the CoreMedia
Project deployment workspace already contains the following entries. If you use the deployment
workspace, you can simply configure the required settings in the catalina.properties
file in the
tomcat-template
module.
Entry in <TomcatHome>/conf/server.xml
In the file <ServletContainerHome>/conf/server.xml
you must insert the following section
after the already existing <Connector>
elements:
<!-- Secure HTTP --> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/example/coremedia/.keystore" keystorePass="changeit"/>
Example 4.1. Code to insert into server.xml
Adjust the entries port
(port number with which the browser communicates),
keystoreFile
and keystorePass
to your own settings. The key
required for HTTPS communication is stored in the key store file generated in
Section 4.2.5.1, “Creating a Key”. The path to the key store
given there must match the path you entered in server.xml
.