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

    0.7.3_1 nsupdate method : issue with the $NSUPDATE_KEY

    Scheduled Pinned Locked Moved ACME
    1 Posts 1 Posters 208 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.
    • GertjanG
      Gertjan
      last edited by

      A certificate renew kicked in last night, as the '60 days' were over.
      It failed.
      The why part is easy to spot : see the NSUPDATE_KEY file path : it is wrong.

      ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
      ACCOUNT_EMAIL='gw.kroeb@gmail.com'
      LOG_FILE='/tmp/acme/V2_mydomain.tld/acme_issuecert.log'
      LOG_LEVEL='3'
      NSUPDATE_SERVER='ns1.mydomain.tld'
      NSUPDATE_SERVER_PORT=''
      NSUPDATE_KEY='/tmp/acme/V2_mydomain.tld/mydomain.tldnsupdate_acme-challenge.mydomain.tld.key'
      NSUPDATE_ZONE='mydomain.tld'
      

      That nsupdate key file didn't exist ....
      It's probably a file with the access credentials like :

      key "secret." {
      	algorithm HMAC-SHA512;
      	secret "eYQiVAutEEAFO......EPeE7vwEdFT11QYs1YhO9zDCaJwzkuZp0w==";
      };
      

      The "nsupdate_acme-challenge." part is added here : /usr/local/pkg/acme/acme_sh.inc line 259 :

      //				$nsupdatefileprefix = "{$certpath}nsupdate";
      				$nsupdatefileprefix = "{$certpath}/";
      

      I removed the line where "nsupdate" is added,

      That did it :

      a0790e13-ab9d-49ee-b772-a6901d619bf6-image.png

      the cert was renewed.
      But now I feel more lucky then smart ....

      I'm using acme 0.7.3_1 on on "RC 20230202"

      f82dbb63-6f02-4663-a8b9-56d5c99283d4-image.png

      I'll be updating to the latest "RC 20230207.0600" later on this day.

      Btw : The RC : so far, so good.
      Using pfSense plus RC on a "SG 4100", added Radius (using it, but it's not essential) and Avahi (neither essential).
      Using the captive portal : did not find any issues.

      Also using the packages Notes, NUT, Filer, CRON, Shellcmd and System_patches.

      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 1
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.