jks 或 pkcs12:我应该使用哪一个来签署 Google Play 商店的 apk? [英] jks or pkcs12: which one should I use to sign the apk for Google Play Store?

查看:67
本文介绍了jks 或 pkcs12:我应该使用哪一个来签署 Google Play 商店的 apk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 3.5.3,在创建我的新密钥库后,建议我使用以下命令转换它:

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

keytool -importkeystore -srckeystore /path/myKeyStore.jks -destkeystore /path/myKeyStore.jks -deststoretype pkcs12

在 Web 和 SO 上,我阅读了一些相关内容(例如,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:

格式 pkcs12 是否与 Google Play 商店完全兼容以发布我的应用程序?

Is the format pkcs12 perfectly compatible with Google Play Store to publish my Apps?

如果是,我应该使用哪个来签署我的 apk,为什么?

If yes, which one should I use to sign my apks and why?

非常感谢!

推荐答案

pkcs12jks 都是持有公钥和私钥 (PPK) 的格式,用于签署用于在 Google Play 商店中发布和发布的 APK.只要您可以将 PPK 用于签名,它的存储方式无关紧要.某些工具或服务可能更喜欢使用一种格式而不是另一种格式,并且在它们之间进行转换是使用命令行工具、KeyStore Explorer 或类似工具.无论转换方向如何,包含的 PPK 始终保持不变.

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.

从 PKCS12 转换为 JKS

从 JKS 转换为 PKCS12

密钥库资源管理器

这篇关于jks 或 pkcs12:我应该使用哪一个来签署 Google Play 商店的 apk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆