This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Keytool Exception: Failed to establish the chain-[Need Help] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Keytool Exception: Failed to establish the chain-[Need Help]" Watch "Keytool Exception: Failed to establish the chain-[Need Help]" New topic
Author

Keytool Exception: Failed to establish the chain-[Need Help]

Mouza Ali
Ranch Hand

Joined: Oct 28, 2008
Posts: 39
Hi all,

I'm trying to create a self signed certificate and make it as a root CA. Then, I create another certificate and sign it with that root CA. However, there was a problem while importing the certificate to the server keystore.

Below are the steps -[Which I found online], and I'll show where the error incured:

-------------------------------------------------------------------
Setting up the root CA
-------------------------------------------------------------------


-------------------------------------------------------
setting up the server now
-------------------------------------------------------



The error was in the last line of the commands. It should print something like: Certificate reply was installed in keystore
But instead it prints: Keytool Exception: Failed to establish the chain !!

Please can anyone help? All the solutions I found online are related to real CAs like verisign and thawt, but here I'm trying to create my own CA.
I'm wasting too much time on this problem and couldn't find anything
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Keytool Exception: Failed to establish the chain-[Need Help]
 
Similar Threads
Add SSL for testing in Glassfish
weblogic 8.1 SSL configuration.
Failed to Establish Chain from Reply
cant get ssl to work with tomcat
Creating CA using keytool