How do I configure the Web Reports to use SSL/TLS in EventSentry 3.0 to 3.3?

Article ID: 238
Category: Web Reports
Applies to: v3.0 to 3.3
Updated: 2023-03-02

Note: These instructions are only for EventSentry 3.0 to 3.3; for version 3.4 and newer please see [knowledge base article 371]


Step 1: Prepare the Certificate

Open a command prompt as an administrator and navigate to the following folder (depends on where you installed EventSentry):
cd "\Program Files (x86)\EventSentry\WebReports\jre\bin"

There are two paths you can take now. Please follow the one that applies to you.


Step 2 Option A: Generate a Self-Signed Certificate Keystore

keytool.exe -genkey -keyalg RSA -alias eventsentry -keystore eventsentry.jks -validity 360 -keysize 2048
In this example the password is "changeit". Use the FQDN of the machine for the "First and last name" value.

Note: If you decide to use your own password, please avoid special characters like [ ^ / " \ ] since they are not processed correctly in the config file.

1
2
3
4
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  server.domain.local

Step 2 Option B: Use a Certificate Authority Keystore

Run the following command to generate a keystore:
keytool.exe -genkey -alias eventsentry -keyalg RSA -keystore eventsentry.jks
In this example the password is "changeit". Use the FQDN of the machine for the "First and last name" value.

Note: If you decide to use your own password, please avoid special characters like [ ^ / " \ ] since they are not processed correctly in the config file.

1
2
3
4
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  server.domain.local

Create the certificate request:

keytool.exe -certreq -keyalg RSA -alias eventsentry -file certreq.req -keystore eventsentry.jks

Follow the instructions from your CA on submitting the certificate request. You will use the certreq.req file created in the last step. In this example, the CA gave a ZIP file containing a chain of certificates.

If they have instructions, follow those instead of the ones here. In our case, these were the steps we had to take to import the certificates.

1
2
3
4
keytool.exe -import -alias AddTrustExternalCARoot -file c:\certs\AddTrustExternalCARoot.crt -keystore eventsentry.jks
keytool.exe -import -alias ComodoUTNSGCCA -file c:\certs\ComodoUTNSGCCA.crt -keystore eventsentry.jks
keytool.exe -import -alias EssentialSSLCA_2 -file c:\certs\EssentialSSLCA_2.crt -keystore eventsentry.jks
keytool.exe -import -alias UTNAddTrustSGCCA -file c:\certs\UTNAddTrustSGCCA.crt -keystore eventsentry.jks

Then after the chain is complete, import the server specific certificate provided by your CA:
keytool.exe -import -alias eventsentry -file c:\certs\server_domain_local.crt -keystore eventsentry.jks


Step 3: Configure the Web Reports to Use Your Keystore

Move the keystore to the conf folder:
move eventsentry.jks "C:\Program Files (x86)\EventSentry\WebReports\conf"

Configure a SSL connector by editing the server.xml file, by default located in:
C:\Program Files (x86)\EventSentry\WebReports\web\conf\server.xml

Look for the first instance of "<Connector.../>" and insert the following below that section making sure the "keyPass" and "keystoreFile" lines match your particular instance:

1
2
3
4
5
6
7
8
<!-- SSL "Connector" -->
   <Connector port"8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" disableUploadTimeout="true" enableLookups="false"
               clientAuth="false" sslProtocol="TLS" scheme="https" secure="true"
               SSLEnabled="true" keyPass="changeit"
               keystoreAlias="eventsentry"
               keystoreFile="C:\Program Files (x86)\EventSentry\WebReports\conf\eventsentry.jks" 
                             sslEnabledProtocols="TLSv1.2"/></code>

If you would also like to disable HTTP, look for this connector:

1
2
3
        <Connector port="8080" protocol="HTTP/1.1"
              connectionTimeout="20000"
              redirectPort="8443"/>

Either delete it or comment it out (enclose it in <!-- and -->)


Step 4: Restart EventSentry Web Reports service

After restarting the "EventSentry Web Reports" service, navigate to https://server.domain.local:8443 to test & access the web reports through SSL.



Try EventSentry on-premise

FREE 30-day evaluation

Download Now