"alias already exists" error when running keytool genkey on Spectrum OneClick system
search cancel

"alias already exists" error when running keytool genkey on Spectrum OneClick system

book

Article ID: 188266

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Getting the following error when running the keytool genkey command on the Spectrum OneClick system to generate a new cert:

keytool error: java.lang.Exception: Key pair not generated, alias <tomcatssl> already exists

Environment

Release : Any

Component : Spectrum OneClick

Resolution

1. Make a backup of the $SPECROOT//custom/keystore/cacerts file

2. Run the following command to remove the entries in the cacerts file:

$SPECROOT/Java/bin/keytool.exe -delete -alias tomcatssl -keyalg RSA -keystore $SPECROOT/custom/keystore/cacerts

3. Run the keytool -genkey again

Additional Information

Reference the "Configure OneClick for Secure Sockets Layer" section of the documentation for more information.