Failed to establish chain from reply when importing certificate using keytool
Issue
- I have an issue with when I tries to import a SSL certificate into my keystore.
Here is what I did
1) Create a key store.
/usr/java/jdk1.5.0_11/bin/keytool -genkey -validity 1600 -keyalg rsa -sigalg SHA1withRSA -keystore example.keystore -alias example
2) Create a SSL request file
/usr/java/jdk1.5.0_11/bin/keytool -certreq -keystore example.keystore -sigalg SHA1withRSA -file example.req -alias example
3) I have sent the req file to our Allianz CA and they came back with
the cert file.
I then ran this command
/usr/java/jdk1.5.0\_11/bin/keytool -import -file signed\_example.cer -keystore example.keystore -alias example
and It prompted me for password and asked me to confirm whether I should trust the certificate I am importing. I type yes. I got this error
keytool error: java.lang.Exception: Failed to establish chain from reply
- While we import certificate we get the below error output
[root@app1 bin]# keytool -importcert -alias jboss -keystore abc.keystore -file partners-entrustcert.crt Enter keystore password: keytool error: java.lang.Exception: Failed to establish chain from reply
Environment
- Java 1.4 or later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
