Friday, November 8, 2019

JBoss AS/WildFly HTTPS configuration - standalone mode

Step 1 : Go to the location : JBOSS-HOME/standalone/configuration
Step 2 : Find the relevant xml file. ( default standalone.xml )
Step 3 : Find the xml block : security-realms
Step 4 : Add bellow content inside the block called security-realms


  <security-realm name="ApplicationSSLRealm">
                <server-identities>
                    <ssl>
                        <keystore path="foo.keystore" relative-to="jboss.server.config.dir" keystore-password="mypassword" alias="mykeystore" key-password="mypassword"/>
                    </ssl>
                </server-identities>
                <authentication>
                    <truststore path="mytrust.keystore" relative-to="jboss.server.config.dir" keystore-password="secret"/>
                    <local default-user="$local" allowed-users="*" skip-group-loading="true"/>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization>
                    <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>