Loading

'Keystore contains an entry whose alias is not acceptable for import' error

Fecha de publicación: Oct 13, 2022
Descripción
In order to successfully use "Import from Keystore" feature available at "Certificate and Key Management", the 'alias' of the certificates within .JKS file must meet following criteria:
"The name must begin with a letter and use only alphanumeric characters and underscores. The name cannot end with an underscore or have two consecutive underscores."

If the criteria is not met, user will get following error:
"Error: Keystore contains an entry whose alias is not acceptable for import : "



 
Solución
In order to find the Certificate alias, we can use following KeyTool Command:
keytool -list -v -keystore C:\Path_To_JKS\Name_of_JKS_file.jks

From within the results, look for "Alias name". The value against this, must meet criteria provided in the description. 
We can change the 'alias' value, with following KeyTool command:
keytool -keystore C:\Users\USERNAME\Desktop\FOLDER\benergy.jks -changealias -alias EXISTING_ALIAS -destalias NEW_ALIAS
Enter the keystore password (when prompted): 

Now, try to import the .JKS file into Salesforce, the problem should have resolved.
Número del artículo de conocimiento

000387657

 
Cargando
Salesforce Help | Article