Alternatively, you can also follow these steps to quickly enable SSL over HTTP for the Tomcat Web container:
1). Open the command prompt and navigate to the JDK Installation folder, or you can navigate to <tibcojre_home>.
2). Run the following command to create a keystore file to store the server's private key and self-signed certificate:
JAVA_HOME\bin\keytool -genkey -alias tomcat -keyalg RSA
3). When prompted, specify the password string, for example, "hawkwebconsole". The password can be any string. The same password needs to be specified in the server.xml configuration file (see step 6).
4). When prompted, specify general information about the certificate such as company, contact name and so on. This information helps users to validate the authenticity of the certificate as this information is displayed to users who attempt to access a secure page in your application.
The .keystore file with the Certificate is created in the same JDK installation folder.
5). Browse to the configuration folder of the Hawk WebConsole and open the file server.xml for editing.
HAWK_HOME/webconsole/tomcat/conf/server.xml
6). Enter the following information under the Catalina service tag <Service name="Catalina">:
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="<path of .keystore file>"
keystorePass="hawkwebconsole"
clientAuth="false" sslProtocol="TLS"/>
7). Save the file and restart Hawk WebConsole.
To verify, type the URL "https://localhost:8443/hawkwebconsole/" in a web browser and press Enter. Web browser should display Hawk WebConsole.