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

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

Generate keystore:

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

Generate certificate signing request (CSR)

6条回答
  •  萌比男神i
    2020-12-30 23:06

    The following step is very important before importing the certs into your local key store. After receiving the signed certs from CA).

    import root certificate to cacerts which will be available at JAVA_HOME/jre/lib/security folder using following command:

    keytool -importcert -alias root -file [root certificate] -keystore cacerts once you enter above command it will prompt for password, enter password and click on yes.

提交回复
热议问题