【问题标题】:how to sign APK with google upload key der file?如何使用谷歌上传密钥 der 文件签署 APK?
【发布时间】:2018-03-29 20:16:02
【问题描述】:

将 der 文件导入密钥库后,如下所示

keytool -keystore my-release-key.keystore  -importcert 
    -file ~/Downloads/upload_cert.der  -alias uploadcert  

我在尝试组装发行版 APK 时遇到错误

trusted certificate entries are not password-protected

如果我添加

-protected

到进口,我明白了

keytool error: java.lang.IllegalArgumentException: password can't be null

如果我在 -protected 之后传递密码,我会收到使用帮助消息。 不知道如何传递密码。

知道我是否在正确的路径上使用 google 上传证书 der 文件进行签名?

【问题讨论】:

标签: apk google-signin keytool


【解决方案1】:

遇到同样的问题,密码不能为空的问题可以通过编辑如下评论来解决:

keytool -keystore parkimayaz.keystore  -importcert -file 
~/Downloads/upload_cert.der  -alias uploadcert -keypass "yourpass" -
storepass "yourpass"

另一个信息我在密码部分使用了 (',#,^) 之类的字符,这给了我一些错误。

也请看oracle keytool docs

【讨论】:

  • 我怎样才能得到它?如果我在 keytool -list 之后键入它会显示 ::java.lang.Exception: The keystore file does not exist: /Users/myuser/.keystore
猜你喜欢
  • 2018-03-01
  • 2016-11-07
  • 2013-07-03
  • 1970-01-01
  • 1970-01-01
  • 2018-12-22
  • 2022-01-06
  • 1970-01-01
  • 2016-09-15
相关资源
最近更新 更多