Enabling SSL Authentication for Hawk WebConsole
The WebConsole is hosted inside the Tomcat web container, thus, enable the SSL for the Tomcat Web container to enable the SSL for WebConsole. Follow the steps mentioned in the Tomcat documentation at the following URL to configure SSL in the Tomcat Web container:
https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html
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. |
|
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
|
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.
|
Now, browse to the configuration folder of Hawk WebConsole and open 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.