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

    Renew Certificate Downstream

    Scheduled Pinned Locked Moved ACME
    6 Posts 3 Posters 861 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.
    • NollipfSenseN
      NollipfSense
      last edited by

      Is it possible for ACME to automatically renew certificate to devices attached to pfSense if the IP is specified in the SAN; for example, the pbx and the phone on pfSense's DMZ?

      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

        @nollipfsense

        Typically, your certificate contains one or more host names, not IPs. Or a wild card certificate.
        A wild card certificate can do "pfense.your-local-domain.tld" and also "nas.your-local-domain.tld" "printer.your-local-domain.tld" etc
        Or you add them all one by one :
        "pfense.your-local-domain.tld"
        "nas.your-local-domain.tld"
        "printer.your-local-domain.tld
        etc.

        The acme.sh pfSense package uses Letsencrypt, who doesn't allow IPs as SAN.

        Scripted, automatic between pfSense and the printer, nas etc could be done .... if "printer" and "nas" can be scripted, which is often not the case. So it becomes a manual export import job.

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

        NollipfSenseN 1 Reply Last reply Reply Quote 0
        • NollipfSenseN
          NollipfSense @Gertjan
          last edited by

          @gertjan said in Renew Certificate Downstream:

          @nollipfsense

          Typically, your certificate contains one or more host names, not IPs. Or a wild card certificate.
          A wild card certificate can do "pfense.your-local-domain.tld" and also "nas.your-local-domain.tld" "printer.your-local-domain.tld" etc
          Or you add them all one by one :
          "pfense.your-local-domain.tld"
          "nas.your-local-domain.tld"
          "printer.your-local-domain.tld
          etc.

          The acme.sh pfSense package uses Letsencrypt, who doesn't allow IPs as SAN.

          Scripted, automatic between pfSense and the printer, nas etc could be done .... if "printer" and "nas" can be scripted, which is often not the case. So it becomes a manual export import job.

          Thank you Gertjan for responding. It seems that this certificate thing isn't what it's turning out to be and maybe better off buying a certificate. But then gone is the days where one could buy one for $2/year or $2 for the first year then the price is jacked up to the real price now that one depends on it.

          So, if I create an ACME certificate for my PBX box to use on HAproxy reverse proxy then I should not need to import the certificate into PBX since HAproxy knows the IP for PBX...correct?

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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

            @nollipfsense said in Renew Certificate Downstream:

            I should not need to import the certificate into PBX since HAproxy knows the IP for PBX...correct?

            I never used something like HAproxy ; but, from what I make of it, if HAproxy is doing the TLS (https) front end, unpacking the TLS an sending plain http (NON TLS) to the back end, your PBX, then yes, no certs needed on the PBX.
            The certificate used by HAProxy, from the pfSense cert store, will always be up to date (acme.sh) without actions from your side (well : renting a domain name).

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

            johnpozJ NollipfSenseN 2 Replies Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Gertjan
              last edited by

              @gertjan said in Renew Certificate Downstream:

              if HAproxy is doing the TLS (https) front end, unpacking the TLS an sending plain http (NON TLS) to the back end, your PBX, then yes, no certs needed on the PBX.

              This is correct, if you do the ssl offload on haproxy - you don't need any sort of ssl on the backend your sending the traffic too if your sending it has just normal http traffic.

              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.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense @Gertjan
                last edited by NollipfSense

                @gertjan said in Renew Certificate Downstream:

                I never used something like HAproxy ; but, from what I make of it, if HAproxy is doing the TLS (https) front end, unpacking the TLS an sending plain http (NON TLS) to the back end, your PBX, then yes, no certs needed on the PBX.

                @johnpoz said in Renew Certificate Downstream:

                This is correct, if you do the ssl offload on haproxy - you don't need any sort of ssl on the backend your sending the traffic too if your sending it has just normal http traffic.

                Thank you all for the good sound of music...that's what I thought and is much better than leaving port 80 opens for Lets Encrypt on FreePBX to renew the certificate. This is just a cleaner method and basically creates a secure tunnel to the PBX.

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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