• Register
0 votes
209 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 24 views
24 views
Can anyone see what I'm doing wrong?
asked Jan 4 TeamScript 13.5k 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 Apr 8 ashik 12.9k points
0 votes
2 answers 303 views
303 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 2 views
2 views
Problem: Hello everyone! I need help .I am new in java so I donot understand the topic:java lang exception failed to establish chain from reply.
asked Apr 8 ashik 12.9k points
0 votes
2 answers 434 views
434 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 19 views
19 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.2K views
4.2K 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 167 views
167 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 347 views
347 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 193 views
193 views
Problem : I can push by clone project using ssh but it is not working for me getting following error server certificate verification failed. cafile: /etc/ssl/certs/ca-certificates.crt crlfile: none
asked Nov 12, 2019 peterlaw 6.9k points