How to mask keystore password in security-realms?

Solution Verified - Updated -

Issue

  • How to mask keystore-password value in security-realms?
  • My keystore password is a plain text "password1" like below standalone.xml or host.xml and this is not good in the view point of the security.
<security-realm name="HTTPSRealm">
    <server-identities>
        <ssl>
            <keystore path="identity.jks" relative-to="jboss.server.config.dir" keystore-password="password1" alias="appserver"/>
        </ssl>
    </server-identities>
</security-realm>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content