• Register
0 votes
431 views

Problem :

The bellow error occurs while importing a Sun Java certificate into a Keystore:

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

6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

There are 3 ways to fix this issue

1. Incorrect Alias Specified:

This error occurs if the wrong Alias was specified while installing the Sun Java Code Signing certificate to the Keystore.The correct Alias to be used would be the Alias used when generating the Certificate Signing Request (CSR) that was submitted for the enrollment of the certificate.
2. Improper Format:

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

3. Incorrect Keystore being Used:

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

9 7 4
38,600 points
0 votes

Solution:

Reason Behind This problem

  1. The inexact alias was specified while attempting to install the certificate.

  2. The certificate being imported is unreasonably formatted.

  3. 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

 

10 6 4
31,120 points

Related questions

0 votes
1 answer 24 views
24 views
Can anyone see what I'm doing wrong?
asked Jan 4 TeamScript 13.5k points
0 votes
2 answers 297 views
297 views
Problem : I am getting bellow error while using keytool keytool error: java.lang.exception: public keys in reply and keystore don't match
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 208 views
208 views
Problem : When I installed the final certificate I got the following error: keytool error: java.lang.Exception: Failed to establish chain from reply
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 16 views
16 views
Problem : I am facing following keytool error 'keytool' is not recognized as an internal or external command, operable program or batch file. any help?
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
2 answers 4.1K views
4.1K views
Problem : I am facing following keytool error 'keytool' is not recognized as an internal or external command, operable program or batch file.
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 1 view
1 view
Problem: I need someone to understand this problem and find out the solution.keytool failed to establish chain from reply
asked 3 days ago ashik 10.6k points
0 votes
1 answer 6 views
6 views
Problem: I have encountered following keytool error: 'openssl' is not recognized as an internal or external command, operable program or batch file. any help!!
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 1.7K views
1.7K views
Problem : I have encountered following keytool error 'openssl' is not recognized as an internal or external command, operable program or batch file.
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 67 views
67 views
Problem: exception in thread "awt-eventqueue-0" java.lang.numberformatexception: for input string: ""
asked Feb 18 Lucky Guy 1.5k points
0 votes
2 answers 440 views
440 views
Problem : I am getting bellow error when I try to use Integer.parseInt() with a single char exception in thread "main" java.lang.numberformatexception: for input string: "s"
asked Oct 19, 2019 peterlaw 6.9k points