Convert .cer certificate to .jks

前端 未结 4 927
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 08:43

I need to convert a .cer file to a .jks file. I saw a few questions about it, but haven\'t seen a solution to what I need.

I don\'t need it in

4条回答
  •  梦毁少年i
    2021-01-31 09:19

    keytool comes with the JDK installation (in the bin folder):

    keytool -importcert -file "your.cer" -keystore your.jks -alias ""
    

    This will create a new keystore and add just your certificate to it.

    So, you can't convert a certificate to a keystore: you add a certificate to a keystore.

提交回复
热议问题