How to set up encryption between Java servers and clients
- Last Updated: November 7, 2025
- 2 minute read
- Corticon
- Documentation
Enabling HTTPS
Corticon Server supports
encrypted communications between the web server and a web service client. If you attempt
to use the default HTTPS port, 8851 - for example,
connecting from the Web Console - you get a security message indicating that your
connection is not private. If you want to use HTTPS, you must enable the HTTPS
connections.
To enable HTTPS on Corticon Server for Java:
- Obtain a private key and a Web server digital certificate.
- Install the Web server digital certificate in the Web server.
- Start the Corticon Server.
When startup is complete, stop it. The initial startup creates the
web.xmlfile. - Edit the file
web.xmllocated at[CORTICON_HOME]\Server\tomcat\webapps\axis\WEB-INF\to uncomment the following section:
Add in the following block to replace … above:<security-constraint> <web-resource-collection> <web-resource-name>Corticon Server</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> ... </security-constraint><user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint>Note: If you already uncommented this section to enable Basic Authentication, review theweb-resource-collectiondefined, and then add theuser-data-constrainttransport-guaranteeblock. - Save the file.
When you restart the Corticon Server, HTTPS is enabled on its default port, 8851.
Enabling a client to publish to a secure Corticon Server
Corticon Studio supports encrypted communications to a Corticon Server. To enable HTTPS communication between the Server and the Client, you must obtain and install public key certificates for the Corticon Studio. The public certificate then needs to be imported to the Java keystore for the Corticon Studio.
keytool.exe -genkey -keystore my.keystore -storepass myPwd
Then, from the command prompt, run the following command to import the certificate:
keytool.exe -import -alias [server] -file [server].der -keystore my.keystore -storepass myPwd
Launch the Eclipse client from a command prompt using the following command:
eclipse -vmargs -Djavax.net.ssl.trustStore="drive:\path\to\certificate\my.keystore" -Djavax.net.ssl.trustStorePassword=myPwd