Loading

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

게시 일자: Oct 13, 2022
상세 설명
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 : "



 
솔루션
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.
Knowledge 기사 번호

000387657

 
로드 중
Salesforce Help | Article