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

Porkbun changed their api

ACME
4
9
330
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.
  • M
    mrchip
    last edited by Mar 26, 2025, 7:19 PM

    Just a heads up. In acme I am using the prepopulated "DNS-Prokbun" dropdown. Was working great until I could not renew my cert. with a failure of " Error adding TXT record to domain: _acme-challenge.mydomain.com"
    Called porkbun, they said they changed api url and now it should be: api.porkbun.com

    Y 1 Reply Last reply Mar 26, 2025, 9:52 PM Reply Quote 0
    • Y
      YJBrian @mrchip
      last edited by Mar 26, 2025, 9:52 PM

      @mrchip Been confused by this for the last hour as well. The API URL was changed in ACME pkg v0.9 according to Bug #15821. I have 0.9_1 installed and this it still point to the old URL. Not sure this is not correct in this version (on pfsense CE 2.7.2-RELEASE)

      G 1 Reply Last reply Apr 9, 2025, 10:46 AM Reply Quote 0
      • G
        Gertjan @YJBrian
        last edited by Apr 9, 2025, 10:46 AM

        @YJBrian

        So 2.7.2 is 'to' old ?
        porkdns changes things that they really shouldn't change, like URLs ;)

        @YJBrian said in Porkbun changed their api:

        ACME pkg v0.9 according

        login-to-view

        Upgrade the pfSense package ?
        or, if 0.9_1 isn't proposed : upgrade first to 2.8.0 (it's probably better then great already) and then you'll have 0.9_1.

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

        Y 1 Reply Last reply Apr 9, 2025, 2:41 PM Reply Quote 0
        • Y
          YJBrian @Gertjan
          last edited by Apr 9, 2025, 2:41 PM

          @Gertjan Not saying there is something too old or necessarily wrong, more so that I don't understand (as a novice) if there is something amiss. I show I am running ACME version 0.9_1 and based on how I read the changes made to the package, the update to Porkbun's URL was implemented in this version, however, it is not updated on my system. Not sure why that is, but is easily corrected with a file edit.

          G 1 Reply Last reply Apr 10, 2025, 6:55 AM Reply Quote 0
          • G
            Gertjan @YJBrian
            last edited by Apr 10, 2025, 6:55 AM

            @YJBrian

            Hummmm.

            0.9_1 is the latest version that uses "api.porkbun.com".
            That's what I have ...

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

            Y 1 Reply Last reply Apr 10, 2025, 3:49 PM Reply Quote 0
            • Y
              YJBrian @Gertjan
              last edited by Apr 10, 2025, 3:49 PM

              @Gertjan Perhaps you can point out what I might be doing wrong - again on pfsense CE 2.7.2-RELEASE and showing I have ACME 0.9_1 installed.
              login-to-view

              If I open /usr/local/pkg/acme/dnsapi/dns_porkbun.sh, I have edited the file to point the updated URL as follows:

              PORKBUN_Api="https://api.porkbun.com/api/json/v3"

              I reinstalled the ACME package though the pfsense interface and open the file again and the URL has reverted to:

              PORKBUN_Api="https://porkbun.com/api/json/v3"

              Not sure what would cause that...

              G 1 Reply Last reply 30 days ago Reply Quote 0
              • G
                Gertjan @YJBrian
                last edited by 30 days ago

                @YJBrian

                The 0.9_1 2.7.2 package wasn't updated.

                Let Plan B be Plan A : upgrade 2.7.2 to 2.8.0 and call it a day ?
                Or redo the edit manually, the next package upgrade will be ok anyway.

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

                1 Reply Last reply Reply Quote 0
                • L
                  luxor84
                  last edited by luxor84 23 days ago 23 days ago

                  I'm happy to share with you how I solved this problem after making a few researches.

                  First of all, I installed through the Package Manager the package "System_Patches".

                  Then I went to System > Patches and I created a Custom System Patch.
                  login-to-view
                  Use the description you want and use this URL for the Committ ID: https://github.com/WereCatf/pfsense/commit/b4258a0d5730cb1bc6eecca6ad4f19b3797f8a4c.diff
                  Then apply the patch.

                  Next step is to edit the file /usr/local/pkg/acme/dnsapi/dns_porkbun.sh
                  I used the tool Diagnostic > Edit File to change the line PORKBUN_Api="https://api.porkbun.com/api/json/v3 to PORKBUN_Api="https://porkbun.com/api/json/v3 and then I saved the file
                  login-to-view

                  After that, as I went to Services > Acme Certificates and I clicked on Issue/Renew.... the Certificate was updated!

                  Y 1 Reply Last reply 23 days ago Reply Quote 1
                  • Y
                    YJBrian @luxor84
                    last edited by 23 days ago

                    @luxor84 said in Porkbun changed their api:

                    https://github.com/WereCatf/pfsense/commit/b4258a0d5730cb1bc6eecca6ad4f19b3797f8a4c.diff

                    Thank you, I'll be honest, I'm not following the patch part of your solution. I ran across the fix in the GIT repository and simply edited the Prokbun.sh file to point to the new URL as you did in the last step. Reinstalling the package reverts the file to the old URL, but I'm wise to the problem now :)

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