Using Vault in system properties does not work

Solution Verified - Updated -

Issue

  • How to encript passwords written in system properties in standalone mode ?

  • It fails in standalone mode only and seems to work in domain mode.

  • Using Vault for system properties throws the below exceptions :

13:26:10,285 ERROR [org.jboss.as.controller.management-operation] JBAS014612: Operation ("add") failed - address: ([("system-property" => "javax.net.ssl.trustStorePassword")]): java.lang.SecurityException: JBAS013322: Vault is not initialized
  • Is there any way to provide Java options other than using Java -D command line arguments ?

  • Is it possible to encrypt keystore password while passing trustStorePassword as parameter?

  • Need assistance in encrypting and passing trustStorePassword as parameter.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.0.0 GA
    • 6.0.1
    • 6.1.0
    • 6.1.1
    • 6.2.0
    • 6.2.1
    • 6.2.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.