What are the merits of JKS vs PKCS12 for code signing?

后端 未结 2 1421
陌清茗
陌清茗 2021-01-30 18:00

When buying a code-signing certificate, what are the merits of starting with a PKCS12 versus JKS certificate? Some vendors give instructions on starting with a JKS or PKCS12 ce

2条回答
  •  终归单人心
    2021-01-30 18:21

    In case you have JKS key store you can convert to PKCS12 using the below commands

    keytool -importkeystore  -srckeypass secret -destkeypass meow123  -srcstorepass secretstore -deststorepass secretstore  -srcalias certforsigning -destalias certforsigning  -srcalias certforencryption -destalias certforencryption -srckeystore my_java_keystore.jks -destkeystore PFX_keystore.pfx  -deststoretype PKCS12
    

    where my_java_keystore.jks is the java key store that has two keys with alias certforsigning and certforencryption

    and you can also convert the keys from PKCS12 to JKS using Keytool

提交回复
热议问题