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

PfSense HAProxy certificate export import

Routing and Multi WAN
3
57
5.7k
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 Apr 15, 2024, 8:03 PM

    @VMlabman
    The common name has to be the FQDN.

    V 1 Reply Last reply Apr 15, 2024, 8:30 PM Reply Quote 1
    • V
      VMlabman @viragomann
      last edited by Apr 15, 2024, 8:30 PM

      @viragomann

      thanks

      V 1 Reply Last reply Apr 15, 2024, 8:36 PM Reply Quote 0
      • V
        viragomann @VMlabman
        last edited by Apr 15, 2024, 8:36 PM

        @VMlabman
        When you enter the FQDN into the browser with "https://" in front of it, the browser expects to get a certificate from the server, in which the common name matches the entered / requested host name (FQDN) in the address line.
        If they don't match the browser will not load the website.

        V 1 Reply Last reply Apr 16, 2024, 3:34 PM Reply Quote 1
        • V
          VMlabman @viragomann
          last edited by VMlabman Apr 16, 2024, 3:37 PM Apr 16, 2024, 3:34 PM

          @viragomann

          Thank you so much for everything. I actually got it working thanks to a lot of your help. It is now successfully working on my printer. Also, in the Certificates I realized everything was case sensitive.

          Once again, thank you for the education and all your time and effort definitely appreciated

          V 1 Reply Last reply Apr 16, 2024, 5:43 PM Reply Quote 0
          • V
            viragomann @VMlabman
            last edited by Apr 16, 2024, 5:43 PM

            @VMlabman
            Glad that you got it working as desired finally.

            V 1 Reply Last reply Apr 16, 2024, 11:01 PM Reply Quote 1
            • V
              VMlabman @viragomann
              last edited by Apr 16, 2024, 11:01 PM

              @viragomann

              Another question re this same project. Does HAProxy support self signed Certificates? If so anything special I need to keep in mind when creating it? The NAS can’t do a CSR. I am having issues adding the my QNAP NAS to HAProxy. Yet, I know HAProxy is working on my printer so I am just adding a new backend and adding it the the same frontend. Other then the NAS is on port 5553 os easy change on that part in the Backend.

              Thanks you,

              login-to-view

              V 1 Reply Last reply Apr 17, 2024, 10:10 AM Reply Quote 0
              • V
                viragomann @VMlabman
                last edited by Apr 17, 2024, 10:10 AM

                @VMlabman said in PfSense HAProxy certificate export import:

                Does HAProxy support self signed Certificates?

                Yes, if you have "SSL checks" unchecked.

                The NAS can’t do a CSR.

                Does it also not support the import of a certificate?

                If you generate the certificate from a CA on pfSense, HAproxy should trust it anyway.

                V 1 Reply Last reply Apr 17, 2024, 2:47 PM Reply Quote 1
                • V
                  VMlabman @viragomann
                  last edited by Apr 17, 2024, 2:47 PM

                  @viragomann

                  However, if I uncheck the SSL box and AJ proxy, does that make the connection between AA proxy and the Cell science certificate unencrypted

                  V 1 Reply Last reply Apr 17, 2024, 3:05 PM Reply Quote 0
                  • V
                    viragomann @VMlabman
                    last edited by Apr 17, 2024, 3:05 PM

                    @VMlabman
                    If you enable the encryption in the backend, HAproxy requires an SSL certificate from the backend server to connect and the traffic is then encrypted based on this cert, whether it's validated or not.

                    V 1 Reply Last reply Apr 17, 2024, 4:29 PM Reply Quote 1
                    • V
                      VMlabman @viragomann
                      last edited by Apr 17, 2024, 4:29 PM

                      @viragomann

                      So for my nails since I’m having problems importing the certificate I’ll just create a self science certificate on the NA itself not checked encrypted SSL certificate in H a proxy back end and proxy will still encrypt the traffic. Am I understanding you correctly because I’m still using AJ proxy

                      V 1 Reply Last reply Apr 17, 2024, 4:36 PM Reply Quote 0
                      • V
                        viragomann @VMlabman
                        last edited by Apr 17, 2024, 4:36 PM

                        @VMlabman
                        Yes, of course it does, as "encryption" is checked.

                        V 1 Reply Last reply Apr 18, 2024, 6:00 PM Reply Quote 1
                        • V
                          VMlabman @viragomann
                          last edited by Apr 18, 2024, 6:00 PM

                          @viragomann

                          Hello,

                          Add my NAS in I have it all set up using an alternate DNS entry from my standard of it's own in DNS so I can point it to the firewall / HAProxy as I did with my printer.

                          Qnap-1.myvmlab.net = 10.50.50.200 to the devices IP
                          mgmtqnap-01.myvmlab.net = 10.50.50.254 to the firewall / HAProxy

                          When I ping them both I get the correct DNS resolution to the correct IP for the Host Name. When I go to https://mgmtqnap-01.myvmlab.net:5553 the browser both Firefox and Chrome timeout with no resolution or additional error. In HAProxy the backend is up. Note the NAS is using a self signed certificate at the moment. Any ideas?

                          V 1 Reply Last reply Apr 18, 2024, 6:27 PM Reply Quote 0
                          • V
                            viragomann @VMlabman
                            last edited by Apr 18, 2024, 6:27 PM

                            @VMlabman said in PfSense HAProxy certificate export import:

                            When I go to https://mgmtqnap-01.myvmlab.net:5553 the browser both Firefox and Chrome timeout with no resolution or additional error.

                            You need the frontend port here!
                            I guess, it's listening on 443. If so, you can omit the port.

                            V 2 Replies Last reply Apr 18, 2024, 6:43 PM Reply Quote 1
                            • V
                              VMlabman @viragomann
                              last edited by Apr 18, 2024, 6:43 PM

                              @viragomann said in PfSense HAProxy certificate export import:

                              https://mgmtqnap-01.myvmlab.net:5553 the browser both Firefox and Chrome timeout with no resolution or additiona

                              WOW you made it work LOL I forgot about that part. All part of being new. It's working and passing through HAProxy. I can see the traffic pass via the stats page.

                              Thank you for saving me

                              V 1 Reply Last reply Apr 18, 2024, 6:56 PM Reply Quote 0
                              • V
                                viragomann @VMlabman
                                last edited by Apr 18, 2024, 6:56 PM

                                @VMlabman said in PfSense HAProxy certificate export import:

                                WOW you made it work LOL I forgot about that part. All part of being new.

                                I know, HAproxy is a bit hard for beginners.

                                1 Reply Last reply Reply Quote 1
                                • V
                                  VMlabman @viragomann
                                  last edited by Apr 18, 2024, 6:57 PM

                                  @viragomann

                                  It was working until I removed the Root CA from my Browser. Once I removed it I get the Warning: Potential Security Risk Ahead when going to https://mgmtqnap-01.myvmlab.net/ Do I have to have the Root CA in my browser for it to work? I did see the traffic pass through HAProxy in Stats w/ the Root CA in my Browser.. Any ideas?

                                  Could this be a case of not having a firewall rule right? I am not sure I ever got that right.

                                  Thank you,

                                  V 1 Reply Last reply Apr 18, 2024, 7:03 PM Reply Quote 0
                                  • V
                                    viragomann @VMlabman
                                    last edited by Apr 18, 2024, 7:03 PM

                                    @VMlabman said in PfSense HAProxy certificate export import:

                                    mgmtqnap-01.myvmlab.net
                                    Do I have to have the Root CA in my browser for it to work?

                                    If it's a private CA, you need the certificate in the browser to trust the server certificate issued from it.

                                    For public CAs the browser or the OS has all certificates included.

                                    V 1 Reply Last reply Apr 18, 2024, 7:07 PM Reply Quote 1
                                    • V
                                      VMlabman @viragomann
                                      last edited by VMlabman Apr 18, 2024, 7:13 PM Apr 18, 2024, 7:07 PM

                                      @viragomann

                                      Got ya, I understand better now. On my printer the HAProxy is working but when I go into some of the pages on the device they do not load vs if I go directly to the IP address it's self. Any Ideas on that one?

                                      Now to add another device. If I have a device that will only take a Certificate from say GoDaddy or Digital Ocean. Will HAProxy work with a default out of the box Certificate or would I have to use an ACME Certificate via my public domain name and somehow stop traffic / access from outside my LAN from using it with in HAProxy with an ACL?

                                      Thank you,

                                      V 1 Reply Last reply Apr 18, 2024, 7:32 PM Reply Quote 0
                                      • V
                                        viragomann @VMlabman
                                        last edited by Apr 18, 2024, 7:32 PM

                                        @VMlabman said in PfSense HAProxy certificate export import:

                                        On my printer the HAProxy is working but when I go into some of the pages on the device they do not load vs if I go directly to the IP address it's self. Any Ideas on that one?

                                        But the pages load if you use the backends host name?

                                        If I have a device that will only take a Certificate from say GoDaddy or Digital Ocean. Will HAProxy work with a default out of the box Certificate

                                        You mean, the backend device pull its certificate directly from a public CA?
                                        And you want to access the device from outside through the revere proxy?

                                        V 1 Reply Last reply Apr 18, 2024, 8:59 PM Reply Quote 1
                                        • V
                                          VMlabman @viragomann
                                          last edited by Apr 18, 2024, 8:59 PM

                                          @viragomann

                                          *On my printer the HAProxy is working but when I go into some of the pages on the device they do not load vs if I go directly to the IP address it's self. Any Ideas on that one?
                                          

                                          But the pages load if you use the backends host name?* Yes, sure does.

                                          The other question is using HAProxy for a SSL on a Manages Switch it has few options and I think it's much more complicated for a beginner like myself. This is what I am looking at doing link text More fun

                                          V 1 Reply Last reply Apr 18, 2024, 9:27 PM Reply Quote 0
                                          35 out of 57
                                          • First post
                                            35/57
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.