FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Is it possible to set up SSL for fusionauth directly?

    Scheduled Pinned Locked Moved
    Q&A
    ssl
    5
    9
    5.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan
      last edited by

      I don't want to run a proxy in front of FusionAuth.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Yes, you can configure SSL in Tomcat, but it is not recommended as we will replace the server.xml file during upgrades. So you'll need to merge any changes you've made with those we've made.

        The best way to set it up will be to use nginx, or apache with TLS and proxy to FusionAuth.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • B
          bharnett
          last edited by bharnett

          I just had to do this with IIS on Windows. Its quite simple and allows you to leave your Tomcat config alone, which for Windows users, is quite daunting and prone to error.

          1. You will need to install the AAR for IIS: https://blogs.sap.com/2014/11/05/how-to-configure-iis-arr-application-request-routing-to-redirect-to-tomcat/
          2. And then add the 443 binding to the IIS default website with your own certificate.

          This means I can now use my own secure custom domain (I have a wildcard domain) with SSL.

          Although, now I'm getting a Proxy Configuration error which kindly gives me instructions to fix, but I can't get it to work yet...

          1 Reply Last reply Reply Quote 0
          • B
            bharnett
            last edited by

            Because of how IIS process header (server) variables. You need to append HTTP_ to the headers and change dashes to underscores like so:

              <set name="HTTP_X_Forwarded_Proto" value="https" />
              <set name="HTTP_X_Forwarded_Host" value="mydomain.com" />
              <set name="HTTP_X_Forwarded_Port" value="443" />
            

            And now it works. It might be a good idea to add a page on this to the official docs too.

            1 Reply Last reply Reply Quote 0
            • danD
              dan
              last edited by

              @bharnett thanks for sharing this!

              I have on my list to write up a proxy guide, but we do outline the headers you need to pass here, in the cluster guide, in the load balancer section: https://fusionauth.io/docs/v1/tech/installation-guide/cluster/#fusionauth-installation

              But you are correct, it should be more obvious.

              Thanks for sharing what worked for you!

              Dan

              --
              FusionAuth - Auth for devs, built by devs.
              https://fusionauth.io

              1 Reply Last reply Reply Quote 0
              • P pclark referenced this topic on
              • robotdanR
                robotdan
                last edited by

                We'll be adding native support for TLS in an upcoming release. See this GitHub issue for reference.
                https://github.com/FusionAuth/fusionauth-issues/issues/1996

                R 1 Reply Last reply Reply Quote 0
                • R
                  ronn316 @robotdan
                  last edited by

                  @robotdan does this mean a proxy is not required anymore? I've been trying to configure the new https properties without success.

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    pradhanv88 @ronn316
                    last edited by

                    @ronn316 Could you please share the link to the documentation for https properties setup?

                    danD 1 Reply Last reply Reply Quote 1
                    • danD
                      dan @pradhanv88
                      last edited by

                      @pradhanv88 it is documented here: https://fusionauth.io/docs/reference/configuration

                      But there is a bug with TLS in recent versions of FusionAuth: https://github.com/FusionAuth/fusionauth-issues/issues/2498

                      This is scheduled not for this release, but for the next one.

                      --
                      FusionAuth - Auth for devs, built by devs.
                      https://fusionauth.io

                      1 Reply Last reply Reply Quote 0
                      • mark.robustelliM mark.robustelli referenced this topic on
                      • First post
                        Last post