jks or pkcs12: which one should I use to sign the apk for Google Play Store?(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?
非常感谢!
推荐答案
pkcs12 和 jks 都是保存用于签名的公钥和私钥 (PPK) 的格式用于在 Google Play Store 上发布和发布的 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
KeyStore 浏览器
这篇关于jks 或 pkcs12:我应该使用哪一个来为 Google Play 商店的 apk 签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:jks 或 pkcs12:我应该使用哪一个来为 Google Play 商店的 apk 签名?
基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
