Error: "keytool error: java.lang.Exception: Input not an X.509 certificate" when Installing a Sun Java Code Signing Certificate

Solution ID:    SO7108
Version:    8.0
Published:    12/13/2007
Updated:    10/17/2014

Problem

The following error occurs when importing a Sun Java™ certificate into a Keystore:

keytool error: java.lang.Exception: Input not an X.509 certificate

Cause

There are a few causes for this error.

  1. The incorrect alias was specified while trying to install the certificate.
  2. The certificate being imported is improperly formatted.
  3. The certificate is being imported into an incorrect keystore.

Solution

Please review each of the possible options below and their fixes to troubleshoot this error:

Option 1 - Incorrect Alias Specified:

This error can occur if the wrong Alias was specified when attempting to install the Sun Java Code Signing certificate to the Keystore.  The correct Alias to use would be the Alias used when generating the Certificate Signing Request (CSR) that was submitted for the enrollment of the certificate.

For further information, please see solution ID:  SO4333


Option 2 - Improper Format:

If the Sun Java Code Signing certificate was saved in an improper way, this error can occur.

To troubleshoot the format of the certificate, please see solution ID:  SO1781


Option 3 - Incorrect Keystore being Used:

If a different Keystore is being used, than the Keystore that was used to generate the CSR that was submitted for the enrollment of the certificate, this error can occur.

If the correct Keystore to use is unknown or lost, a replacement of the certificate is needed.  For instructions to replace the certificate, please see solution ID:  SO1437

 

Legacy ID

vs589

Disclaimer:

Thawte has made efforts to ensure the accuracy and completeness of the information in this document. However, Thawte makes no warranties of any kind (whether express, implied or statutory) with respect to the information contained herein. Thawte assumes no liability to any party for any loss or damage (whether direct or indirect) caused by any errors, omissions, or statements of any kind contained in this document. Further, Thawte assumes no liability arising from the application or use of the product or service described herein and specifically disclaims any representation that the products or services described herein do not infringe upon any existing or future intellectual property rights. Nothing herein grants the reader any license to make, use, or sell equipment or products constructed in accordance with this document. Finally, all rights and privileges related to any intellectual property right described herein are vested in the patent, trademark, or service mark owner, and no other person may exercise such rights without express permission, authority, or license secured from the patent, trademark, or service mark owner. Thawte reserves the right to make changes to any information herein without further notice.  

Knowledge Center


Search Tips