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

Renew Certificate Downstream

Scheduled Pinned Locked Moved ACME
6 Posts 3 Posters 892 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.
  • N
    NollipfSense
    last edited by Feb 14, 2022, 5:29 AM

    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.

    G 1 Reply Last reply Feb 14, 2022, 7:06 AM Reply Quote 0
    • G
      Gertjan @NollipfSense
      last edited by Feb 14, 2022, 7:06 AM

      @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 ??

      N 1 Reply Last reply Feb 14, 2022, 7:33 PM Reply Quote 0
      • N
        NollipfSense @Gertjan
        last edited by Feb 14, 2022, 7:33 PM

        @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.

        G 1 Reply Last reply Feb 15, 2022, 9:25 AM Reply Quote 0
        • G
          Gertjan @NollipfSense
          last edited by Feb 15, 2022, 9:25 AM

          @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 ??

          J N 2 Replies Last reply Feb 15, 2022, 9:28 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @Gertjan
            last edited by Feb 15, 2022, 9:28 AM

            @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.8, 24.11

            1 Reply Last reply Reply Quote 0
            • N
              NollipfSense @Gertjan
              last edited by NollipfSense Feb 15, 2022, 2:48 PM Feb 15, 2022, 2:46 PM

              @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
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received