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

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

问题描述

我想签我的Andr​​oid应用程序的发布版本(调试签订罚款)为谷歌地图API:

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

但我得到的错误:

But I get the error:

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.

不知道为什么我不能签这个?我需要显示谷歌地图在释放模式(在调试模式下工作)。

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

然后在提示时提供密钥存储的密码。如果这样的作品,那么你可以尝试只在命令行上的关键通过。

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.

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

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