2 Replies Latest reply on Aug 27, 2015 6:54 AM by Wolfgang Mayer

    Redirecting Wildfly Server to https.

    Jagadish Adabala Newbie

      Please help in redirecting  Wildfly 8.1.0.final to https , currently it redirects to http.

       

      Its very urgent.

       

      Thanks

        • 1. Re: Redirecting Wildfly Server to https.
          Jagadish Adabala Newbie

           

          PFB the steps Which I followed for redirecting the server to HTTPS:

           

           

           

          1. Command to generate KeyStore:   keytool -genkeypair -alias localhost -keyalg RSA -keysize 2048 -validity 7360 -keystore server.keystore -keypass secret -storepass secret -dname "cn=Server Administrator,o=Acme,c=GB"

             

          2. Changes made in the standalone.xml:

             

            

          Inside management tag: I added the below thing

           

          <security-realm name="UndertowRealm">

           

          <server-identities>

           

          <ssl protocol="TLS">

           

          <keystore path="server.keystore" relative-to="jboss.server.config.dir" keystore-password="secret" alias="localhost"/>

           

          </ssl>

           

          </server-identities>

           

          </security-realm>

           

           

           

           

           

                Inside the given tag <subsystem xmlns: "urn:jboss:domain:undertow:1.1">: I added the below thing 

           

           

           

          <https-listener name="default-https" socket-binding="https" security-realm="UndertowRealm" verify-client="REQUESTED"/>

           

           

          But still I am not able to redirect to https.

           

          • 2. Re: Redirecting Wildfly Server to https.
            Wolfgang Mayer Master

            What messages do you get when accessing the AS via the HTTPS port?

            How is the authentication/authorization in this Realm? Don't you need some truststore?