Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PfSense HAProxy certificate export import

    Scheduled Pinned Locked Moved Routing and Multi WAN
    57 Posts 3 Posters 6.8k Views
    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.
    • V
      viragomann @VMlabman
      last edited by

      @VMlabman
      As I wrote, this is an action which you can configure.

      ffe2e6d2-ccdf-4a4c-9a46-38ee9074729d-grafik.png

      Possibly you need to configure an ACL for it, which is ever true.

      I don't use this function for my purposes, however, so I cannot give more details.

      1 Reply Last reply Reply Quote 1
      • VioletDragonV
        VioletDragon @VMlabman
        last edited by

        @VMlabman You are missing the most crucial thing here. DNS! What is your goal ? What services are you trying to get SSL Certificates for? Web Services ? Mail Services ?

        What is your DNS configuration? Without valid DNS and Domain you will not get a SSL Certificate with Let’s Encrypt.

        In my High availability Cluster + hosting services my configuration consists of,

        Acme / Pfsense on both node 01 & node 02 for SSL offloading.

        Backend uses SSL Certificates too but both firewall and Servers have there own Certificates.

        DNS - Split DNS with Digital Ocean API Configuration with DNS resolver.

        This gives you more of an idea how it works. Never copy SSL certificates from a Server to use on another. This is a floored configuration. Both needs to have SSL certificates generated.

        Regards.

        V 1 Reply Last reply Reply Quote 0
        • V
          VMlabman @VioletDragon
          last edited by

          @VioletDragon
          @viragomann

          Viragomann, I set the host header as shownhostheaderset.png . The page is still not loading properly. screenshots attached

          I am in a homelab having deployed HAProxy serving two devices a printers web management interface and a NAS web management interface. The NAS works great smooth and with out page load delays or errors. The printer on the other hand does not load several of it’s management pages. It does not give any errors at all. Just a partially load page when I use the https:// url vs. just the IPv4 address.

          My DNS is setup using pfSense 2.7.2 resolver. I do have a Registered Domain as well. Yet for right now I am just working with devices that are are not going to be public facing. I am using pfSense for my certificates for the local devices.

          After that I will move on the public facing sites with ACME and my Domain.

          Thank you,
          hp prn no load.png hp prn does load.png

          V VioletDragonV 2 Replies Last reply Reply Quote 0
          • V
            viragomann @VMlabman
            last edited by

            @VMlabman
            Host name = FQDN!

            AND you need to enter the host name, which the printer wants to see.
            You wrote, it works if you access the printer directly with its host name. Pick this and enter it in the host header.

            V 1 Reply Last reply Reply Quote 0
            • VioletDragonV
              VioletDragon @VMlabman
              last edited by

              @VMlabman I would have not done it like this. No FQDN I.e prn.domain.com.

              1 Reply Last reply Reply Quote 0
              • V
                VMlabman @viragomann
                last edited by

                @viragomann

                Hello,

                Changes I made to http-request header set
                I set name: mgmthpofficejetpro9015e
                i set fmt: mgmthpofficejetpro9015e.myvmlab.net

                 Are the name:    and     fmt:    set correctly?
                

                HAProxy Action Setting Header.png

                What I was trying to say was when I go to 10.50.50.100 i get to all works great. It gives me a Security warning I click OK and I get a page load different than I do with the https page request.

                printer IP does load right.png printer IP does load right pg 2.png

                When i go to https://mgmthpofficejetpro9015e.myvmlab.net I get no errors but it does not load pages fully and thinks I am already logged into the page / site as it shows Sign-out in upper right corner.

                printer FQDN does not load right.png

                V 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @VMlabman
                  last edited by

                  @VMlabman
                  Okay, forget the host header. Since the page load correctly with the IP, the host header might not be necessary.

                  You will have to debug the web site as mentioned above, to find out, why it's not loading all parts properly.

                  V 1 Reply Last reply Reply Quote 1
                  • V
                    VMlabman @viragomann
                    last edited by

                    @viragomann

                    You know whats coming next by now don't you? How do I even start to debug a webpage? YouTube? What are your suggestions?

                    Thank you,

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @VMlabman
                      last edited by

                      @VMlabman
                      You can entering the debug mode (developer mode) by hitting F12.

                      Select Network in the top line. Enable the Scheme column by right clicking on the headline of a column and selecting "Scheme" from the drop-down. Then reload the page.
                      Look for files with status 400 and above.

                      d7fbe4e2-2c18-4b68-aa5d-e628bc2abfe9-grafik.png

                      Do this over HAproxy and direct access, so that we can compare it.
                      I guess, there are differences in the file path or in the scheme.

                      V 1 Reply Last reply Reply Quote 1
                      • V
                        VMlabman @viragomann
                        last edited by

                        @viragomann

                        I’ll work on that and some spare time

                        Another quick question from another Bundoo machine and two other windows machines I’m not able to get a SSL connection to the Qnap machine even though I imported the CA certificate into the browsers this goes for chrome and Firefox getting a machine reboot cleared cookies and data from browsers. Any suggestions on this one?

                        Thank you,

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.