0

我正在尝试为 JBoss 6.1.1 创建一个密码库

首先,我这样做:

keytool -genkey -alias vault -keystore passwords.keystore -keyalg RSA -keysize 1024 -storepass password -keypass password -dname "CN=DSA vault,OU=RIS,O=Company,L=City,ST=State,C=DE"

然后我在 jboss/bin 中调用 vault.sh,按要求输入所有值,输出如下:

Secured attribute value has been stored in vault.
Please make note of the following:
********************************************
Vault Block:test
Attribute Name:encrypted
Configuration should be done as follows:
VAULT::test::encrypted::1
********************************************

什么时候应该是这样的:

Please make note of the following:
********************************************
Vault Block:test
Attribute Name:encrypted
Shared Key:ZDc1Y2Q5Y2EtZGRjNC01YTU1LWJiOTgtYzcwODYyNTIzYjJkTElORV9CUkVBS2RzYXZhdWx0
Configuration should be done as follows:
VAULT::test::encrypted::ZDc1Y2Q5Y2EtZGRjNC01YTU1LWJiOTgtYzcwODYyNTIzYjJkTElORV9CUkVBS2RzYXZhdWx0
********************************************

所以它不会生成哈希。我有点卡住了,用谷歌搜索了它,但什么也没找到。有人能指出我正确的方向吗?谢谢!!

4

1 回答 1

0

自己搞定了:

保险库的机制在版本之间发生了变化。缺少哈希是预期的行为,只需要“1”作为占位符。

于 2014-03-20T16:39:40.607 回答