keytool error: java.lang.Exception: Failed to establish chain from reply

前端 未结 6 1849
余生分开走
余生分开走 2020-12-30 22:54

Generate keystore:

keytool -genkey -alias tomcat -keyalg RSA -keystore my.keystore -keysize 2048

Generate certificate signing request (CSR)

6条回答
  •  星月不相逢
    2020-12-30 23:01

    To resolve this issue, use an extra switch (-trustcacerts) in the keytool commands.

    The command to import intermediate certificates from the intermediate.cer file to the certificates.ks keystore file should look like this:

    keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -import -alias intermediate -trustcacerts -file intermediate.cer

    The command to import the certificate from the http.cer file to the certificates.ks keystore file should look like this:

    keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -import -alias http -trustcacerts -file http.cer

    Re-attempt to complete the creation and importing process of a signed SSL Certificate.

提交回复
热议问题