How can i create keystore from an existing certificate (abc.crt) and abc.key files?

后端 未结 5 540
再見小時候
再見小時候 2020-11-28 19:48

I am trying to import a certificate and a key file into the keystore but I\'m unable to do that.

How can I create a keystore by importing both an existing certificat

5条回答
  •  春和景丽
    2020-11-28 20:15

    In addition to @Bruno's answer, you need to supply the -name for alias, otherwise Tomcat will throw Alias name tomcat does not identify a key entry error

    Sample Command: openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12 -name localhost

提交回复
热议问题