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

    WebGUI SSL cert for HA cluster

    Scheduled Pinned Locked Moved webGUI
    15 Posts 4 Posters 1.4k 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.
    • J
      Jinat
      last edited by

      I have a HA setup of 2 pfsense nodes. I am trying to configure SSL server certificate for Web GUI specific for each node. I have disabled the sync option of Certificate Authorities, Certificates, and Certificate Revocation Lists from the Configuration Synchronization Settings (XMLRPC Sync). However, configured web GUI SSL certificate from the primary node is synching to the 2ndary node and removing the certificate set for 2ndary GUI. Pfsense version I am using is 2.5.2. Is it a bug? Or is there any other configuration do I need to check. Please, help me out with this issue.

      Thanks

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Jinat
        last edited by

        @jinat
        What about a getting a wild card cert ?

        I'm just thinking out loud, I'm not using HA or inter router syncing.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        J 1 Reply Last reply Reply Quote 0
        • J
          Jinat @Gertjan
          last edited by

          @gertjan wild cart certs are no-no now a days. It includes lot more functions that is not expected in a highly secured environment.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            If you sync OpenVPN that requires certificates to sync so it will still copy them if you have that on.

            For HA you can do a couple different things:

            Method 1: Include SANs for both nodes and the shared CARP VIP hostname in one certificate and have both use that (works great w/ACME, certs from other places may cost more)

            Method 2: Import the cert for the primary and secondary nodes (plus any shared certs) to the primary so all certs exist on both nodes. Then pick the appropriate one for use in the GUI on both.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            J 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Jinat
              last edited by johnpoz

              @jinat this is actually a very interesting question. I have no real play time with HA setup..

              I see no real mention of this in the ha example setup. But do see setting different names for the nodes, firewall-a and firewall-b for example. So this would suggest for sure use of different certs.

              And since the name doesn't get overwritten, you would assume that the cert used wouldn't get overwritten either.

              You should still be able to sync CA, certs etc.. But the setting for which cert the node uses shouldn't get overwritten.

              So should be able to have a cert for firewall-a and firewall-b on both nodes, where a uses the A cert and b uses the B cert..

              I think I need to setup a HA to play with for just this question.. Because now my curiosity cat is meowing at me ;)

              edit: I see jimp chimed in, method2 was how I was thinking it should work.. But I like method 1 as a better option to be honest.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              J 1 Reply Last reply Reply Quote 0
              • J
                Jinat @jimp
                last edited by

                @jimp Hi, thanks, that sounds good. I have applied method 1 already.

                1 Reply Last reply Reply Quote 0
                • J
                  Jinat @johnpoz
                  last edited by

                  @johnpoz Hi, what is the reasoning behind to consider method 1 as a better option?

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @Jinat
                    last edited by

                    @jinat because you can access either or and the carp address with just 1 cert ;)

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Jinat @johnpoz
                      last edited by

                      @johnpoz Here I am using Web GUI SSL cert for accessing GUI, following the configuration System->Advanced->AdminAccess->HTTPS->Certs. Not sure about the CARP VIP address you are talking about. How SSL cert can be used in CARP configuration? There should be a backend HTTPS configuration that I am aware of.

                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @Jinat
                        last edited by johnpoz

                        @jinat You have your carp vip right, pick a name - setup dns to resolve that name firewall-c.yourdomain.tld for example.. Since the cert has the san for firewall-c its valid.

                        This would just load the node that is primary and owns the vip at the time..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jinat @johnpoz
                          last edited by

                          @johnpoz I am not using CARP VIP for pfsense nodes. But yes, what I have done is I have given the certificate a shared common name and the certificate includes SAN with fqdn of primary and 2ndary node.

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator @Jinat
                            last edited by

                            @jinat said in WebGUI SSL cert for HA cluster:

                            I am not using CARP VIP for pfsense nodes.

                            Then they are not really in a HA setup.. The only way you could get client to move over to the other node would be manually. If there is no vip that the nodes pass shared that one ones and the other does not unless the primary fails.

                            How do your clients move to the other node.. You would manually have to change their gateway to point to the other node.

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Jinat @johnpoz
                              last edited by

                              @johnpoz Hi yes as I am not using CARP VIP it is not fully redundant HA setup. Is there any way I can change the certificate with CLI? I have lost GUI access.

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @Jinat
                                last edited by johnpoz

                                @jinat said in WebGUI SSL cert for HA cluster:

                                Is there any way I can change the certificate with CLI?

                                like pick which one? I do not believe so other than rolling back to another restore recent config.

                                You could use

                                pfSsh.php playback generateguicert
                                

                                To generate a selfsigned and use that. or just revert to http for the gui, etc.

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jinat @johnpoz
                                  last edited by

                                  @johnpoz I recovered the GUI Acces with generating new web configurator cert. Thanks.

                                  Now, I am having A communications error occurred while attempting to call XMLRPC method merge_installedpackages_section: @ 2021-12-14 08:52:20 and GUI access is not stable it is very often giving 504 gateway timeout error.

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