Tools
Unable to access WHD after applying new SSL certificate
This article shows one of the possible resolutions when encountering an issue of not being able to access WHD after applying a new SSL certificate in a Windows environment. ERROR MESSAGE: Connection refused.
First published date
Last published date
Overview
ERROR MESSAGE: Connection refused.
This page can't be displayed
Product section
Cause
- The file
keystore.jksis not in the default location:C:\Program Files\WebHelpDesk\conf. Because the file is not in the expected location, WHD is unable to locate the SSL certificate. - The keypair alias is not named 'tomcat'.
- The keypair and keystore password does not match the password stored inside the
whd.conffile.
Resolution
Check the existing keystore
To confirm that the updated keystore file is being used by Web Help Desk, check the keystore location inside thewhd.conf file.
- Log into your WHD Server.
-
Go to:
<WebHelpDesk>\conf - Open the whd.conf file as an administrator using Notepad.
-
Scroll down to:
Keystore settings (for SSL connections) - In the KEYSTORE_FILE= parameter, enter the correct location of keystore.jks using the following format:
KEYSTORE_FILE=E:/location_of_keystore/keystore.jks
- Save and close the whd.conf file.
- Restart the Web Help Desk service.
- Access the Web Help Desk site again.
Import the new certificate
To correct the keypair alias and to match the keypair password for a Windows installation, use the Portecle application inside the Web Help Desk installation folder to import the PFX certificate. The new certificate cannot be in CRT or CER format.- Stop the Web Help Desk service.
-
Navigate to:
C:\Program Files\WebHelpDesk - Right-click portecle.bat and run as administrator.
- In the Portecle interface, click File and select Open Keystore File.
-
Navigate to:
C:\Program Files\WebHelpDesk\conf -
Select:
keystore.jks - If prompted, enter the keystore password, and then click OK.
-
Delete the existing keypair.
Right click the tomcat entry and select Delete. - Import the new PFX certificate.
- In the Portecle interface, click Tools > Import Keypair.
- Locate and select your PFX/.p12 file.
- Enter the PFX password.
-
Change the alias name to:
tomcat - Click File > Save Keystore and overwrite the existing keystore file.
- Close Portecle.
- Set the keystore password in the whd.conf file.
-
Go to:
<WebHelpDesk>\conf - Right-click the whd.conf file and open as administrator.
-
Scroll down to:
Keystore settings (for SSL connnections) -
Locate:
KEYSTORE_PASSWORD=changeit - Replace changeit with the same password you set on the keystore earlier.
- Save and close the file.
-
- Restart the Web Help Desk service.