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 签名?
基础教程推荐
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
