jks或pkcs12:我应该使用哪一个为Google Play商店的apk签名? [英] jks or pkcs12: which one should I use to sign the apk for Google Play Store?
问题描述
Android Studio 3.5.3创建新的密钥存储区后,建议我使用以下命令对其进行转换:
keytool -importkeystore -srckeystore/path/myKeyStore.jks -destkeystore/path/myKeyStore.jks -deststoretype pkcs12
在Web和SO上,我对此有所了解(例如,无论使用哪种编程语言,都广泛支持pkcs12
格式),但我找不到此问题的答案:>
pkcs12
格式是否与Google Play商店完全兼容以发布我的应用?
如果是,我应该使用哪一个对我的apk签名?为什么?
非常感谢!
pkcs12
和jks
都是保存公钥和私钥(PPK)的格式,用于对APK进行签名以在Google Play商店中发布和发布. PPK的存储方式无关紧要,只要您可以将其用于签名即可.某些工具或服务可能更喜欢使用一种格式,然后通过使用命令行工具,KeyStore Explorer或类似工具在它们之间进行转换.无论转换方向如何,所包含的PPK始终保持不变.
Android Studio 3.5.3, after the creation of my new Key Store, suggests me to convert it using this command:
keytool -importkeystore -srckeystore /path/myKeyStore.jks -destkeystore /path/myKeyStore.jks -deststoretype pkcs12
On the Web and on SO I read a little about it (for example the pkcs12
format is widely supported regardless of the programming language used to read it) but I can't find the answer to this question:
Is the format pkcs12
perfectly compatible with Google Play Store to publish my Apps?
If yes, which one should I use to sign my apks and why?
Thanks a lot!
Both pkcs12
and jks
are formats holding the public and private key (PPK) used for signing the APK for release and publishing on Google Play Store. It doesn't matter how the PPK is stored as long you can use it for signing. Certain tools or services might prefer using one format over the other and converting between them is by using either command line tools, KeyStore Explorer or similar. Regardless of the conversion direction, the PPK contained stays always the same.
这篇关于jks或pkcs12:我应该使用哪一个为Google Play商店的apk签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!