Error at upgrade time due to multiple certificates in the TWSServerKeyFile keystore

At upgrade time, you might encounter the following error if you have stored more than one certificate in the TWSServerKeyFile keystore:
WACOMM006E Command failed. The error is "WACERT052E More than

one entry was found in the keystore "TWSServerKeyFile.p12"

Solution

To solve this problem, you can either remove the unnecessary certificates from the keystore and restart the upgrade.

If you do not want to remove the certificates, perform the following steps:
  1. Browse to the ssl_config.xml file, located in usr\servers\engineServer\configDropins\defaults.
  2. Check whether the serverKeyAlias property is present.
  3. Add the property, if missing, and set it to the name of the alias associated to the certificate you want to use. For more information, you can check the related WebSphere Application Server Liberty documentation at https://www.ibm.com/docs/it/was-liberty/base?topic=liberty-ssl-configuration-attributes