Keytool 不要求输入别名密码 [英] Keytool do not ask for alias password

查看:68
本文介绍了Keytool 不要求输入别名密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试生成一个密钥库文件来签署我的 React Native Android 应用程序并将其发布到 Play 商店.

I'm trying to generate a keystore file to sign my React Native Android app and publish it to Play Store.

我正在尝试按照本文档中的描述进行操作:https://facebook.github.io/react-native/docs/signed-apk-android.html.基本上,我在终端中运行以下命令:keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000.

I'm trying to do it as described in this docs: https://facebook.github.io/react-native/docs/signed-apk-android.html. Basically, I'm running the following in the terminal: keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000.

此命令要求输入密钥库密码,但不要求输入别名密码.我需要别名密码来设置我的 App Center 构建并按照上述文档中的描述进行签名.无法理解它存储在哪里.

This command asks for the keystore password, but not for alias password. I need the alias password to setup my App Center build and to sign as described in the docs above. Can't understand where's is it stored.

谢谢!

推荐答案

我找到了解决方案.原因是我的keytool版本生成的是PKCS12 keystore,非JKS.正如它所说的 PKCS12 KeyStores 不支持不同的存储和密钥密码.

I've found a solution. The reason was that my keytool version generates PKCS12 keystore, non JKS. As it says Different store and key passwords not supported for PKCS12 KeyStores.

所以我能够通过传递 -storetype jks 参数来生成一个 JKS 文件(它要求输入两个密码).现在它说 JKS 密钥库使用专有格式.建议迁移到 PKCS12,这是一种行业标准格式,使用...

So I was able to generate a JKS file by passing -storetype jks parameter (and it asked for two passwords). And now it says The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using...

这篇关于Keytool 不要求输入别名密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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