密钥库:删除密码 [英] Keystore: delete password

查看:174
本文介绍了密钥库:删除密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个密钥库(keytool密钥存储区),用于从Eclipse-ADT签名.apk. 由于每次导出时都会出现非常烦人的密码请求,因此我试图找出如何避免重新输入密码的方法.

I have a keystore (keytool key storage), which is used for signing .apk's from Eclipse-ADT. Due to the extremely annoying password requests at each export, I'm trying to figure out how to avoid reentering password.

我当前的选择是:

  • 使用Perl/X1 :::: XTEST,自动输入密码(不安全)
  • 破解Eclipse以缓存密码(可能不安全,明显的时间损失)
  • 删除密钥库密码,这似乎是最好的主意

尝试设置空密码失败:

>> keytool -keystore /work/X/googleplay.key -alias X -keypasswd
Enter keystore password:  
New key password for <X>: 
Password is too short - must be at least 6 characters
New key password for <X>: 
Password is too short - must be at least 6 characters
New key password for <X>: 
Password is too short - must be at least 6 characters
keytool error: java.lang.Exception: Too many failures - try later

推荐答案

没有密码就无法使用JKS密钥库.最好的选择是以某种方式在命令行上传递密钥存储区密码-例如,不要使用ADT对文件进行签名,而是像

JKS keystores can't be used without a password. The best option is to pass your keystore password on the command line somehow - for example, instead of using the ADT to sign your files, trigger an ant build like in this answer.

如果您真的想拥有一个无密码的密钥库,唯一的选择是编写自己的KeyStore实现(尽管您仍然必须告诉签名工具使用它)-请参见

If you really want to have a passwordless keystore your only option is to write your own implementation of KeyStore (although you still have to be able to tell your signing tools to use it) - see the Oracle documentation for more details.

这篇关于密钥库:删除密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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