Why do we see JBAS013313 Vault Reader Exception while configuring vault via CLI?
Issue
- Why the cli example mentioned in document section 9.11.4 [1] configure password vault via cli does not work ?
[domain@TestHost:5555 core-service] ls /host==TestHost/core-service
discovery-options ignored-resources patching
host-environment management platform-mbean
[domain@TestHost:5555 core-service] /host=TestHost/core-service=vault:add(vault-options=[("KEYSTORE_URL" => "test_vaultstore.jceks"), ("KEYSTORE_PASSWORD" => "MASK-pw111111"), ("KEYSTORE_ALIAS" => "vault"), ("SALT" => "12438567"),("ITERATION_COUNT" => "11"), ("ENC_FILE_DIR" => "/jboss-eap-6.3.1/domain/configuration")])
{
"outcome" => "failed",
"failure-description" => {"host-failure-descriptions" => [("TestHost" => "JBAS014749: Operation handler failed: JBAS015804: Error initializing vault -- org.jboss.as.server.services.security.VaultReaderException: JBAS013313: Vault Reader Exception:")]},
"rolled-back" => true
}
- Created the certificate as following:
/keytool -genseckey -alias vault -storetype jceks -keyalg AES -keysize 128 -dname "CN=ABC, OU=Example, L=Washington, ST=TestDistrict, O=TestO, C=US" -keystore /jboss-eap-6.3.1/domain/configuration/test_vaultstore.jceks -keypass "MASK-pw111111" -storepass "MASK-pw111111" -validity 3650
[1] Configure_the_Enterprise_Application_Platform_to_Use_the_Password_Vault1.html
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
