When using the Import from Keystore feature in Salesforce Certificate and Key Management (Setup > Security > Certificate and Key Management), the import may fail with the following error:
"Error: Keystore contains an entry whose alias is not acceptable for import"
This error occurs when the alias of a certificate within the .JKS (Java KeyStore) file does not meet Salesforce's alias naming requirements.
Salesforce alias naming requirements:
If any certificate in the .JKS file has an alias that does not meet these criteria, the import fails.
To resolve this error, find the current certificate alias and change it to one that meets Salesforce's naming requirements.
Use the Java Keytool command-line utility to list the certificates in your .JKS file and identify the current alias name:keytool -list -v -keystore C:\Path_To_JKS\Name_of_JKS_file.jks
In the output, look for the "Alias name" field. The value shown must comply with the naming requirements listed in the Description section above.
Once you have identified the non-compliant alias, use the following Keytool command to rename it:keytool -keystore C:\Users\USERNAME\Desktop\FOLDER\filename.jks -changealias -alias EXISTING_ALIAS -destalias NEW_ALIAS
Replace EXISTING_ALIAS with the current alias name and NEW_ALIAS with a new alias that meets Salesforce's naming rules (starts with a letter, alphanumeric and underscores only, no trailing underscore, no consecutive underscores).
Enter the keystore password when prompted.
After successfully changing the alias, return to Salesforce Certificate and Key Management and retry the Import from Keystore operation with the updated .JKS file. The import should now succeed.
000387657

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.