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