Adding a Secure https Listener to Undertow

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

<subsystem xmlns="urn:jboss:domain:undertow:3.1">

    <server name="default-server">
        ...
        <https-listener name="https" socket-binding="https" security-realm="HTTPSRealm"/>
        <host ...>
        </host>
    </server>
    ...
</subsystem>


Add this to the security realm page:

<host xmlns="urn:jboss:domain:4.1" name="master">
    <management>
        <security-realms>
            <security-realm name="HttpSslRealm">
                <server-identities>
                    <ssl>
                        <keystore path="ssl.keystore" relative-to="jboss.domain.config.dir" alias="ssl" keystore-password="test123" key-password="test123" />
                    </ssl>
                </server-identities>
            </security-realm>
        </security-realms>