Keytool 签名问题:Keystore 被篡改,或密码不正确 [英] Keytool Signing Problem: Keystore was tampered with, or password was incorrect

查看:49
本文介绍了Keytool 签名问题:Keystore 被篡改,或密码不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 Google Maps API 签署我的 Android 应用程序的发布版本(调试已正确签署):

I am trying to sign the release version of my Android app (debug was signed fine) for the Google Maps API:

keytool -list -alias cancertrials -keystore /Users/syalam/Documents/workspace/Cancer_Trials/keys/release -storepass android -keypass cancertrials

但我收到错误:

java.io.IOException: Keystore was tampered with, or password was incorrect

我确定密码正确,因为当我尝试在 Eclipse 中导出我的应用程序时,它要求提供密钥库和密码,而我输入正确.

I am positive the password is correct, because when I try to export my app in Eclipse, it asks for the keystore and the password, and I am entering it in correctly.

不知道为什么我不能签名?我需要在发布模式下显示 Google 地图(在调试模式下工作).

Not sure why I can't sign this? I need to display Google Maps in release mode (working in debug mode).

推荐答案

我认为当你只是在做一个列表时,你不必包含 storepass.storepass 加密了做列表时不显示的私钥.试试这个:

I don't think you have to include a storepass when you're just doing a list. The storepass encrypts the private key which isn't displayed when doing a list. Just try this:

keytool -list -keystore /Users/salam/Documents/yada/yada

然后在提示时提供您的密钥库密码.如果可行,那么您可以在命令行上尝试使用 keypass.

Then provide your keystore password when prompted. If that works then you can try just the keypass on the command line.

您可能还想检查并确保您使用的是相同版本的 Java.我不认为这是问题所在,但如果以上方法没有帮助,请尝试一下.

You might also want to check and make sure your using the same version of Java. I don't think that's the problem, but if the above doesn't help try it out.

这篇关于Keytool 签名问题:Keystore 被篡改,或密码不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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