尝试刷新'过期'密钥库 [英] Trying to refresh 'expired' keystore

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

问题描述

我试图重新签订使用Ant任务signjar但它告诉我一些罐子签名证书已过期。

I am trying to re-sign some jars using the ant task 'signjar' however it's telling me "The signer certificate has expired."

于是,我就重新生成密钥库希望这会未过期这...

So I tried to re-generate the keystore hoping this would 'un-expire' it...

的keytool -genkey -keystore mykeystore -alias myalias

但进入存储密码,我收到后的keytool错误:java.lang.Exception的:密钥对未生成,别名已存在

but after entering the keystore password i get: "keytool error: java.lang.Exception: Key pair not generated, alias already exists"

我在做什么错了?我是否需要删除密钥库重新生成它还是有一个简单的方法来刷新它,所以它没有过期?

what am i doing wrong? do i need to delete the keystore to re-generate it or is there a simple way to refresh it so it's not expired?

感谢。

推荐答案

你混淆的术语。密钥库包含键,一键是用于签名的东西。

You're mixing up the terms. A keystore contains keys, a key is something used for signing.

据我所知,你试图把新钥匙插入使用现有的别名(名称)的旧密钥库。你为什么不干脆用一个新的?这个或删除从旧密钥密钥存储第一。你并不需要删除整个密钥库。

AFAIK, you're trying to put a new key into an old keystore using an existing alias (name). Why don't you simply used a new one? Either this or delete the old key from the keystore first. You don't need to drop the whole keystore.

看一看 portecle ,这个简单的工具,可以让你更轻松地操纵密钥库。

Have a look at portecle, this simple tool allows you to manipulate the keystore more easily.

这篇关于尝试刷新'过期'密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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