I'm currently trying to redirect my http to https on wildfly 10.
In Standalone.xml I have the following configuration:
<management>
    <security-realms>
        <security-realm name="SSLRealm">
            <server-identities>
            <keystore path="/home/vagrant/key-cert.pem keystore-password="password"/>
        </security-realm>
    </security-realms>    
</management>
<subsystem xmlns="urn:jboss:domain:undertow:3.1">
    <buffer-cache name="default"/>
    <server name="default-server">
        <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
        <https-listener name="https" socket-binding="https" security-realm="SSLRealm" enable-http2="true"/>
    </server>
</subsystem>
The rest of document is untouched.
What i'm missing?
Kind regards.