[英]jks or pkcs12: which one should I use to sign the apk for Google Play Store?
Android Studio 3.5.3, after the creation of my new Key Store, suggests me to convert it using this command: Android Studio 3.5.3 在创建我的新密钥库后,建议我使用以下命令转换它:
keytool -importkeystore -srckeystore /path/myKeyStore.jks -destkeystore /path/myKeyStore.jks -deststoretype pkcs12 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:在 Web 和 SO 上,我阅读了一些相关内容(例如,无论用于阅读它的编程语言如何,都广泛支持pkcs12
格式),但我找不到这个问题的答案:
Is the format pkcs12
perfectly compatible with Google Play Store to publish my Apps? pkcs12
格式是否与 Google Play 商店完全兼容以发布我的应用程序?
If yes, which one should I use to sign my apks and why?如果是,我应该使用哪一个来签署我的 apk,为什么?
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. pkcs12
和jks
都是保存公钥和私钥 (PPK) 的格式,用于签署 APK 以在 Google Play 商店上发布和发布。 It doesn't matter how the PPK is stored as long you can use it for signing.只要您可以将 PPK 用于签名,它的存储方式无关紧要。 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.某些工具或服务可能更喜欢使用一种格式而不是另一种格式,并且在它们之间进行转换是使用命令行工具、KeyStore Explorer 或类似工具。 Regardless of the conversion direction, the PPK contained stays always the same.无论转换方向如何,包含的 PPK 始终保持不变。
Convert from PKCS12 to JKS从 PKCS12 转换为 JKS
jks is java key store, which is more of a java related format, and you can use it directly for signing your release apks for the playstore. jks 是 java 密钥库,它更多是一种与 java 相关的格式,您可以直接使用它来为 Playstore 签署您的发行版 apk。 So if you're just going to be using it for this purpose, you don't really need to convert it to pkcs12.因此,如果您只是将其用于此目的,则您实际上不需要将其转换为 pkcs12。 PKCS12 is not specific to java. PKCS12 并非特定于 java。 If you want to store other keys for other purposes, in the same key store, in a language-neutral format, you may want to convert it to pkcs12.如果您想为其他目的存储其他密钥,在同一个密钥存储中,以语言中立的格式,您可能需要将其转换为 pkcs12。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.