• Register
0 votes
151 views

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

Please log in or register to answer this question.

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:

https://www.ibm.com/support/pages/keytool-error-javalangexception-failed-establish-chain-reply

9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
Can anyone see what I'm doing wrong?
asked Jan 4 TeamScript 10.1k points
0 votes
2 answers 247 views
247 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 366 views
366 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 141 views
141 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 3.4K views
3.4K 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 314 views
314 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
0 votes
2 answers 260 views
260 views
Problem : I am getting bellow memory error java.lang.outofmemoryerror requested array size exceeds vm limit
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 2.2K views
2.2K views
Problem : I am getting below error while running my Jersey API in Tomcat 8.5.11 java.lang.illegalstateexception: injectionmanagerfactory not found.
asked Nov 1, 2019 peterlaw 6.9k points
0 votes
2 answers 319 views
319 views
Problem : I am trying to consume a RESTful service from url https://someurl.com. But I am getting the following error: java security cert certpathvalidatorexception certificate chaining error
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 127 views
127 views
Problem : Since I upgraded the existing project with the iOS 9, I keep getting the below error : “An SSL error has occurred and a secure connection to the server cannot be made.”
asked Jan 4, 2020 alecxe 7.5k points