In this document you find the detailed instructions which steps to follow in order to connect to your
Overview
The steps you need to follow consist of:
Steps to follow
Create a Keystore File for Your Tomcat Installation
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore tomcat-keystore.jks -storepass myTomcatKeystorePassword
What is your first and last name?
[Unknown]: localhost
What is the name of your organizational unit?
[Unknown]: YOUR_UNIT
What is the name of your organization?
[Unknown]: YOUR_ORGANIZATION
What is the name of your City or Locality?
[Unknown]: YOUR_CITY
What is the name of your State or Province?
[Unknown]: YOUR_STATE
What is the two-letter country code for this unit?
[Unknown]: AT
Is CN=localhost, OU=YOUR_UNIT, O=YOUR_ORGANIZATION, L=YOUR_CITY, ST=YOUR_STATE, C=AT correct?
[no]: YES
Enter key password for <tomcat>
(RETURN if same as keystore password):
You have to use the hostname / domain of your AWI instance as your first and last name
(localhost
in this example).
This command will create a new keystore file named tomcat-keystore.jks
protected with the password myTomcatKeystorePassword
located in the configuration directory.
The keystore contains a self-signed certificate for your AWI instance.
Import a Signed Certificate into the Keystore (optional)
You can skip this step, if you use a self-signed certificate that you created in the previous step.
"%JAVA_HOME%\bin\keytool" -import -alias root -keystore tomcat-keystore.jks -trustcacerts -file <filename_of_the_chain_certificate>
"%JAVA_HOME%\bin\keytool" -import -alias tomcat -keystore tomcat-keystore.jks -file <your_certificate_filename>
The Tomcat only supports keys and certificates in the
JKS
, PKCS11
or PKCS12
format.
PKCS12
keystore using OpenSSL you would execute a command like this:
openssl pkcs12 -export -in mycert.crt -inkey mykey.key
-out mycert.p12 -name tomcat -CAfile myCA.crt
-caname root -chain
Configure the Tomcat Connection
server.xml
file located in the configuration directory of your Tomcat instance.
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
keyAlias="tomcat" keystoreFile="conf\tomcat-keystore.jks" keystorePass="myTomcatKeystorePassword"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
For the parameter
keystorePass
enter the password of the tomcat-keystore.jks
.
Test Access to Your AWI instance
You can now access the Interface WebDeprecated Term. Automic using a secure connection.
https://YOUR_DOMAIN:8443/awi/
(for example: https://localhost:8443/awi/
)