Copy to ClipboardCopied!Toggle word wrapToggle overflow
如果该值没有存储在指定块中,则会显示以下信息:
Password doesn't exist.
Password doesn't exist.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
要以互动方式运行密码 vault 命令,需要执行以下步骤:
以交互方式启动密码 vault 命令。
运行 EAP_HOME/bin/vault.sh (在红帽企业 Linux 和类似操作系统上)或 EAP_HOME\bin\vault.bat (在 Windows Server 上)。通过键入 0 (零)来启动新的交互式会话。
完成提示的参数。按照提示输入所需的身份验证参数。这些值必须与创建密码库时提供的值匹配。
注意
提示进行身份验证时,必须以纯文本形式提供密钥存储密码,而不是屏蔽的格式。
输入 1 (一个)来选择" 检查"是否存在已保护的属性。
输入存储敏感字符串的 vault 块的名称。
输入要检查的敏感字符串的名称。
如果敏感字符串存储在指定的 vault 块中,输出类似如下的确认消息:
A value exists for (VAULT_BLOCK, ATTRIBUTE)
A value exists for(VAULT_BLOCK, ATTRIBUTE)
Copy to ClipboardCopied!Toggle word wrapToggle overflow
如果敏感字符串没有存储在指定块中,输出类似以下内容的消息:
No value has been store for (VAULT_BLOCK, ATTRIBUTE)
No value has been store for(VAULT_BLOCK, ATTRIBUTE)
Copy to ClipboardCopied!Toggle word wrapToggle overflow
示例:以互动方式检查敏感 String
=========================================================================
JBoss Vault
JBOSS_HOME: EAP_HOME
JAVA: java
=========================================================================
**********************************
**** JBoss Vault ***************
**********************************
Please enter a Digit:: 0: Start Interactive Session 1: Remove Interactive Session 2: Exit
0
Starting an interactive session
Enter directory to store encrypted files:EAP_HOME/vault
Enter Keystore URL:EAP_HOME/vault/vault.keystore
Enter Keystore password:
Enter Keystore password again:
Values match
Enter 8 character salt:1234abcd
Enter iteration count as a number (Eg: 44):120
Enter Keystore Alias:vault
Initializing Vault
Nov 09, 2015 9:24:36 PM org.picketbox.plugins.vault.PicketBoxSecurityVault init
INFO: PBOX000361: Default Security Vault Implementation Initialized and Ready
Vault Configuration in AS7 config file:
********************************************
...
</extensions>
<vault>
<vault-option name="KEYSTORE_URL" value="EAP_HOME/vault/vault.keystore"/>
<vault-option name="KEYSTORE_PASSWORD" value="MASK-5dOaAVafCSd"/>
<vault-option name="KEYSTORE_ALIAS" value="vault"/>
<vault-option name="SALT" value="1234abcd"/>
<vault-option name="ITERATION_COUNT" value="120"/>
<vault-option name="ENC_FILE_DIR" value="EAP_HOME/vault/"/>
</vault><management> ...
********************************************
Vault is initialized and ready for use
Handshake with Vault complete
Please enter a Digit:: 0: Store a secured attribute 1: Check whether a secured attribute exists 2: Remove secured attribute 3: Exit
1
Task: Verify whether a secured attribute exists
Enter Vault Block:vb
Enter Attribute Name:password
A value exists for (vb, password)
Please enter a Digit:: 0: Store a secured attribute 1: Check whether a secured attribute exists 2: Remove secured attribute 3: Exit
=========================================================================
JBoss Vault
JBOSS_HOME: EAP_HOME
JAVA: java=========================================================================
**********************************
**** JBoss Vault ***************
**********************************
Please enter a Digit:: 0: Start Interactive Session 1: Remove Interactive Session 2: Exit
0
Starting an interactive session
Enter directory to store encrypted files:EAP_HOME/vault
Enter Keystore URL:EAP_HOME/vault/vault.keystore
Enter Keystore password:
Enter Keystore password again:
Values match
Enter 8 character salt:1234abcd
Enter iteration count as a number (Eg: 44):120
Enter Keystore Alias:vault
Initializing Vault
Nov 09, 20159:24:36 PM org.picketbox.plugins.vault.PicketBoxSecurityVault init
INFO: PBOX000361: Default Security Vault Implementation Initialized and Ready
Vault Configuration in AS7 config file:
********************************************
...
</extensions><vault><vault-option name="KEYSTORE_URL"value="EAP_HOME/vault/vault.keystore"/><vault-option name="KEYSTORE_PASSWORD"value="MASK-5dOaAVafCSd"/><vault-option name="KEYSTORE_ALIAS"value="vault"/><vault-option name="SALT"value="1234abcd"/><vault-option name="ITERATION_COUNT"value="120"/><vault-option name="ENC_FILE_DIR"value="EAP_HOME/vault/"/></vault><management>...
********************************************
Vault is initialized and ready for use
Handshake with Vault complete
Please enter a Digit:: 0: Store a secured attribute 1: Check whether a secured attribute exists 2: Remove secured attribute 3: Exit
1
Task: Verify whether a secured attribute exists
Enter Vault Block:vb
Enter Attribute Name:password
A value exists for(vb, password)
Please enter a Digit:: 0: Store a secured attribute 1: Check whether a secured attribute exists 2: Remove secured attribute 3: Exit
Copy to ClipboardCopied!Toggle word wrapToggle overflow