Products | Versions |
---|---|
Spotfire Server | All versions |
You try to import a CA-issued certificate to the TIBCO Spotfire Server Java keystore by running a command like the following:
C:\tibco\tss\11.4.1\jdk\bin>keytool -import -alias spotfire -file C:\tibco\tss\11.4.1\tomcat\certs\servercert.cer -keystore C:\tibco\tss\11.4.1\tomcat\certs\spotfire.jks
You then get an error message:
"keytool error: java.lang.Exception: Failed to establish chain from reply"
This can happen when the certificate fails to build the chain as Root and/or Intermediate certificates have not been imported properly or in the correct order.
Option A
Ask the CA admin to provide the certificate in .p7b format which exports the chain along with Root and intermediate certificates.
You can then run the below command to import the certificate:
keytool -import -alias spotfire -file <Spotfire Server Install>tomcat\certs\servercert.p7b -keystore <Spotfire Server Install>\tomcat\certs\spotfire.jks
Option B
Follow the below steps to import the certificates individually once you have the .p7b format certificate
keytool -import -alias spotfire -file <Spotfire Server Install>\tomcat\certs\Rootcert.cer -keystore <Spotfire Server Install>\tomcat\certs\spotfire.jks keytool -import -alias spotfire -file <Spotfire Server Install>\tomcat\certs\Intermediate.cer -keystore <Spotfire Server Install>\tomcat\certs\spotfire.jks keytool -import -alias spotfire -file <Spotfire Server Install>\tomcat\certs\servercert.cer -keystore <Spotfire Server Install>\tomcat\certs\spotfire.jks
Stack Overflow, "keytool error: java.lang.Exception: Failed to establish chain from reply"