Reason Behind This problem
The inexact alias was specified while attempting to install the certificate.
The certificate being imported is unreasonably formatted.
The certificate is being imported into an false keystore.
Please review every of the probable options below and their fixes to troubleshoot this error:
Option 1 - Incorrect Alias Secluded:
This error can happen in case the wrong Alias was secluded when trying to install the Sun Java Code Signing certificate to the Keystore. The appropriate Alias to use would be the Alias applied at the time of producing the Certificate Signing Request (CSR) that was submitted for the enrollment of the certificate.
Option 2 - Improper Format:
In case the Sun Java Code Signing certificate was saved in an inappropriate method, this error can happen.
Option 3 - Inappropriate Keystore being employed:
In case a diverse Keystore is being employed, than the Keystore that was used to produce the CSR that was submitted for the enrollment of the certificate, this error can happen.
Option 4: Employ the following syntax while performing the import function
keytool -import -trustcacerts -alias alias_name -file certificate_file.p7b -keystore keystore_name