Requirements:
The Tomcat server has been installed as a container for the Web EEC.
Configuration:
First, a keystore file has to be created. This file contains the certificate with which the server authenticates itself to the client. In this document, the password changeit is used, but any password can be used:
- Enter the following statement in the console:
- Remove the comment statements for the following, commented text; to activate it again, transfer this text:
- Add the certificate to the Connector as follows:
- Re-start the Tomcat server to activate the changes.
<JAVA-Installationsordner>\bin\keytool -genkey -alias tomcat -keyalg RSA
The file .keystore is saved to the user folder.
Using the Tomcat configuration file server.xml, which is in the folder <Tomcat-Installation folder>/conf/, the SSL is activated.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" />
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" keystoreFile="<Pfad>/.keystore" keystorePass="changeit" clientAuth="false" sslProtocol="TLS" />
The URL for calling the Web EEC in the browser has thus changed to: