Tomcat SSL certificates

I followed the tutorial on how to install my Cloudflare certificate into my tomcat server, however I was not successful, here is what I did:

  1. create a new keystore
    keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore yourdomain.jks

  2. create csr request
    keytool -certreq -alias server -keyalg RSA -file yourdomain.csr -keystore yourdomain.jks

  3. I uploaded my csr file to Cloudflare to generate certificate

  4. I downloaded my generated certificate in p7b format

  5. keytool -import -trustcacerts -alias server -file cert.p7b -keystore yourdomain.jks

And here I got error:
keytool error: java.lang.Exception: Failed to establish chain from reply

Could someone help me please ?


This topic was automatically closed after 30 days. New replies are no longer allowed.