Loading

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

Date de publication: Oct 13, 2022
Description
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 : "



 
Résolution
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.
Numéro d’article de la base de connaissances

000387657

 
Chargement
Salesforce Help | Article