I ran into an exception while importing my certificate (certificate.crt, While importing my certificate after importing root certificate.), keytool error: java.lang.Exception: Failed to establish chain from reply
Do any one how to go about this?
Detail:
OS: Ubuntu, 16
Java version: 8
Server:Tomcat8, no revers proxies used
Generated certificates through CSR
domain: ikk.cool
alias: ragha
Hosted in AWS
I imported CA_Bundle(1 keytool import command), It went through fine. So I’m thinking that intermediate will also be imported as part of it.
Next, When I imported actual certificate, I faced this issue.
Do let me know if you need any details. Much appreciate your help
Downloaded intermediate from https://letsencrypt.org/certificates/, imported this as well, command used is below keytool -import -trustcacerts -alias intermediate -file ./letsencrypt/letsencryptauthorityx3.crt -keystore ./mycertificate o/p: Certificate already exists in keystore under alias root
Do you still want to add it? [no]: yes
Certificate was added to keystore
Imported my certificate keytool -import -alias tomcat -keystore /home/ubuntu/mycertificate -file ./letsencrypt/certificate.crt o/p: keytool error: java.lang.Exception: Failed to establish chain from reply