This document provides a step-by-step guide for creating a Java KeyStore (JKS), importing a CA-signed SSL certificate, and configuring AutomationEdge for secure HTTPS communication.
Before starting, ensure you have:
Certificates from your Certificate Authority (CA):
Scenario A: The Application Certificate is sufficient. If the Root and Intermediate certificates are included on that.
Scenario B: A single bundled certificate containing the full chain.
Keystore password (you will set this during creation/import).
Access to the Tomcat server.xml
configuration file.
Ability to restart the Tomcat service.
Import the Root Certificate
keytool -import -trustcacerts -alias intermediate -keystore your_JKS.jks -file <Certificate>
Import the Intermediate Certificate
keytool -import -trustcacerts -alias intermediate -keystore your_JKS.jks -file <Certificate>
Import the Application (Main) Certificate
keytool -import -trustcacerts -alias aeserver -keystore your_JKS.jks -file <Certificate>
If your CA provides:
A single certificate file for your domain
Use:
keytool -import -trustcacrts aeserver -file your_certificate_file.cer keystore your_JKS.jks
Check the contents of the keystore:
keytool -list -keystore your_JKS.jks
Important:If thePrivateKeyEntry
is missing, you must first import the private key into your main certificate, then re-import that updated certificate into your JKS file.
Edit $TOMCAT_HOME/conf/server.xml
and add or update the connectors:
server.xml
.SSL Connector
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" sslProtocol="TLS" alias="aeserver" keystoreFile="./conf/your_JKS.jks" keystorePass="<password_to_keystore>" />
<SSLHostConfig>
)Edit $TOMCAT_HOME/conf/server.xml
and configure:
SSL Connector
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" sslProtocol="TLS"> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/your_JKS.jks" certificateKeystorePassword="<password_to_keystore>" type="RSA" /> </SSLHostConfig> </Connector>
Restart the Tomcat service to apply the SSL changes.
Log in to AutomationEdge as sysadmin
.
Update the HTTPS URL in the system/application settings.
Verify the connection and save the changes.
This completes the process for installing and configuring your CA-signed SSL certificate with AutomationEdge and Tomcat.