简体   繁体   English

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, 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. pkcs12jks都是保存公钥和私钥 (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

Convert from JKS to PKCS12从 JKS 转换为 PKCS12

KeyStore Explorer密钥库资源管理器

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.

相关问题 JKS、BKS 和 PKCS12 文件格式 - JKS, BKS and PKCS12 file formats 人行横道Google Play商店APK登录 - Crosswalk Google Play Store APK Sign 如何将PKCS12密钥库文件从RSA1024更改为RSA2048,并能够在Play商店中更新应用程序? - How to change PKCS12 keystore file from RSA1024 to RSA2048 and be able to update the app in Play Store? 我有一个已发布的应用程序,如果 APK 是通过 xender 或任何其他资源发送/安装的,是否在 google play 商店中计算在内? - I have one application which was published, if APK is send/installed via xender or any other resources, is it counted at google play store? 我应该在Google Play,签名的APK或项目中上载哪个.apk文件->构建 - Which .apk file should i upload on google play, signed apk or in projects-->build 错误消息 - 创建新的密钥库 (PKCS12) (Andorid Studio) - Error message - Creating a new Key store (PKCS12) (Andorid Studio) 我在Google Play商店中发布了一个应用程序,我怎么知道上传了哪个APK? - I published an app to the google play store, How do I know which apk was uploaded? 在将KeyStore写入Android中的文件时,使用BouncyCastle PKCS12SafeBagBuilder或PKCS12BagAttributeCarrier更改PKCS12安全袋属性? - Use BouncyCastle PKCS12SafeBagBuilder or PKCS12BagAttributeCarrier to change PKCS12 safe bag attributes when writing KeyStore to file in Android? 将.keystore转换为.jks以签署apk - Convert .keystore to .jks to sign apk 我可以上传一个带有新证书的APK,其中包含一个新的SHA1密钥来玩商店 - Can I upload one APK with a new certificate which contains a new SHA1 key to play store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM