If you want to access Adeptia Connect on HTTPS protocol then you need to configure SSL certificate in Adeptia Connect. You need to generate SSL certificate using Java Keytool only.
Configuring SSL Certificate on Connect Server
To generate SSL certificate:
- Open Command Prompt.
- Go to the directory where JRE is installed (for example,<ConnectServerInstallFolder>/jre/bin).
Run the following Keytool command to create a Keystore for Connect Server with a self signed certificate or CA signed certificate.
While executing the command, you will be prompted to provide other details. The default password is changeit. You can change the password. Note the Keystore password for future references.- Copy this Keystore (certs.jks) at the location (<ConnectServerInstallFolder>/AdeptiaServer/ServerKernel/etc/jetty).
- From the same folder location, open jetty.xml file and register the Keystore entry in the file. In the sslContextFactory section, add the path of the Keystore and the Keystore password (password chosen while creating Keystore).
- Save the file.
- Restart Connect Kernel and Connect WebRunner.
Configuring SSL Certificate on Connect Portal
To generate SSL certificate:
- Open Command Prompt.
- Go to the directory where JRE is installed (for example, <ConnectPortalInstallFolder>/jre/bin).
Run the following Keytool command to create a Keystore for Connect Portal with a self signed certificate or CA signed certificate.
While executing the command, you will be prompted to provide other details. The default password is changeit. You can change the password. Note the Keystore password for future references.- Copy this Keystore (certs.jks) at the location (…/<ConnectPortalInstallFolder>/keystore).
- Go to …/<ConnectPortalInstallFolder>/conf and open server.xml in the Text Editor.
Update the Keystore entry in the server.xml file and add the path of KeystoreFile and KeystorePass (password chosen while creating Keystore).
If the keystore password contains any of following characters then it needs to be escaped with the value mentioned next to it.
CharacterValue" " ' ' < < > > & & For example, if the keystore password is p@ssw0rd&123! then it has to be defined as p@ssw0rd&123!
For better performance of Tomcat, refer to Performance Tuning for tuning other parameters.- Save the file.
- Restart Connect Portal.
Automatic HTTP to HTTPS Redirection in Connect Portal
If you want to access Adeptia Connect on HTTPS only then you need to redirect HTTP to HTTPS automatically. To enable automatic redirect:
- Go to …/<ConnectPortalInstallFolder>/conf.
- Open web.xml file.
Uncomment the below security constraint within </web-app> and save the file.
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Context</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
Verifying Configuration
To verify whether you have configured SSL certificate in Adeptia Connect:
- Open the browser and hit the URL to access Adeptia Connect using https protocol.
- Adeptia Connect login page appears. Verify your certificate by checking https protocol color in the address bar. If you have used CA signed certificate then https protocol will be green in color () . However, if you have used self signed certificate then https protocol will be red in color ().
Next step
Configuring SSL Handshake between Connect Server and Connect Portal