• Register
0 votes

Problem :

When I installed the final certificate I got the following error:

keytool error: java.lang.Exception: Failed to establish chain from reply
6 5 3
6,930 points

1 Answer

0 votes

Solution :

To resolve the issue follow bellow steps:

  1.  You will be able to see the certificate chain on the third tab that looks as the following image.enter image description here

  2. Select the root certificate from the chain and click on the button "View Certificate".

  3. A new window will open, go to the second tab and click on the "Save File" button. This will open an export wizard for your ceritficate.
  4. When exporting, select the X.509 base 64 option and follow the instructions. Save the file.
  5. Repeat for the intermediate certificate.
  6. Upload both certificates to your server and import into the keystore following the order - first root, second intermediate and finally your certificate.

Before I imported those certificates, I had to delete the ones that were on my keystore and were not working. To do so, I used the following instructions:

keytool -delete -alias [root] -keystore [keystore file]

If you are not sure what is inside your keytool, you can view by using:

keytool -list -keystore [keystore file]

Further Readings:


9 7 4
38,600 points

Related questions

0 votes
2 answers 184 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
2 answers 286 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
asked Nov 2, 2019 peterlaw 6.9k points
0 votes
1 answer 108 views
Problem : I am new to Servlet programing, while running my Servlet code i am getting bellow error error 500 javax servlet servletexception java lang illegalstateexception
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
2 answers 2.3K 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 244 views
Problem : I am getting bellow error when I start my locale instance of Tomcat the exception was: java.net.bindexception: cannot assign requested address: bind
asked Oct 19, 2019 peterlaw 6.9k points