This content has been marked as final.
Show 2 replies
-
1. Re: Vault encrypted system-properties from webapp
giufusacc May 14, 2013 9:22 AM (in response to giufusacc)From your java class:
String pwd = System.getProperty("yourPropName");
try {
pwd = SecurityVaultUtil.getValueAsString(pwd);
} catch (SecurityVaultException e) {
...
}
Naturally, before you should:
1) create a keystore;
2) encrypt and store pwds with vault script;
3) configure vault block in jboss configuration file;
4) set a system-property with name="yourPropName" and value="VAULT::block_value::password::MGU4MzM4...."
-
2. Re: Vault encrypted system-properties from webapp
alireza.alallah Apr 17, 2018 5:23 AM (in response to giufusacc)Hello thanks for helpful answer ,
How I can add a property in jboss-cli with encrypt value? and retrieve value in application with SecurityVaultUtil?
I want to add custom property in system-properties section with above condition
best regards