keytool error: java.lang.Exception: Certificate not imported, alias already exists

Using command “keytool” to import the certificate to the Java keystore in OEM 13c failed with the following error:

keytool error: java.lang.Exception:Certificate not imported, alias already 
exists

RESOLUTION

Make sure the alias is unique. If requires the same alias name, delete the previous certificate with the alias name before re-importing again.

$JDK_HOME/bin/keytool -delete -alias <Alias> \
-keystore $JDK_HOME/jre/lib/security/cacerts -storepass changeit