Install certificate for TDM portal causes Portal to fail to start

book

Article ID: 210297

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Can you please assist with installing a certificate I have followed the documentation generated a Keystore file and updated the properties file however the web page doesn't load

Cause

The client had added double quotes around the alias name in the properties file which is not supported.

Environment

TDM portal 4.9.x

Test Data Manager

Resolution

In the startup.log for the portal we can see the following errors:
FINEST|11704/0|21-03-11 08:38:02|SEVERE: Failed to initialize component [Connector[HTTP/1.1-8443]]
FINEST|11704/0|21-03-11 08:38:02|org.apache.catalina.LifecycleException: Protocol handler initialization failed
FINEST|11704/0|21-03-11 08:38:02|Caused by: java.lang.IllegalArgumentException: jsse.alias_no_key_entry
FINEST|11704/0|21-03-11 08:38:02|Caused by: java.io.IOException: jsse.alias_no_key_entry


If we look at the properties files we see the following:
tdmweb.keystorePath=C:/Program Files/CA/CA Test Data Manager Portal/conf/.keystore2
tdmweb.keystorePassword={cry}PU85CR4OsDOFtG+lmclMzP7oCKJI8qX0czq7-JM587rd
tdmweb.keyAlias="host1.firm.domain.biz"
jobs.legacyexecutor.threads=10

Below is the command you used to generate the keystore:

Below is the command I used to generate the file

keytool -import -file C:\Source\TDM1_Cert.cer -alias host1.firm.domain.biz -keystore "C:/Program Files/CA/CA Test Data Manager Portal/conf/.keystore2" -storepass <passowrd>

in the properties files for the tdmweb.keyAlias you added " " around the alias name.
We do not put double quotes around strings in the properties files

Can you please change
from:
tdmweb.keyAlias="host1.firm.domain.biz"
to 
tdmweb.keyAlias=host1.firm.domain.biz

Stop the portal, clear the logs and start it again.