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

后端 未结 5 543
再見小時候
再見小時候 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:03

    Adding to @MK Yung and @Bruno's answer.. Do enter a password for the destination keystore. I saw my console hanging when I entered the command without a password.

    openssl pkcs12 -export -in abc.crt -inkey abc.key -out abc.p12 -name localhost  -passout pass:changeit
    

提交回复
热议问题