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

    Redirecting Wildfly Server to https.

    jagadish1221

      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.
          jagadish1221

           

          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.
            mayerw01

            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?