Signiant Support

Public keys in reply and keystore don't match Print


Problem:

When importing a certificate into a keystore, I get the following error: keytool error: java.lang.Exception: Public keys in reply and keystore don't match

Resolution:

The error means that the issued certificate does not match with the key in your keystore. This can be due to one of the following reasons:

  1. The alias name that was used when the keystore was created does not match the alias name being used when importing. Please make sure that the alias name used on the import is the same as what was used to generate the keystore.

  2. The keystore where the certificates are being imported to is not the keystore that was used to generate the CSR. The Comodo certificates can only be imported into the keystore that was used to generate the certificate request. Please locate the correct keystore and run the import again.