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

    Solved: ACME RFC2136 with DNS alias mode not working

    Scheduled Pinned Locked Moved ACME
    2 Posts 1 Posters 771 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.
    • P
      pete35
      last edited by pete35

      Re: Acme DNS-NSupdate / RFC 2136 issue
      @jimp

      While trying to get a Lets Encrypt certificate for my Pfsense, pfsense.domain.tld, i need to use intern.domain.tld for validating with RFC 2136, which is on a my different bind server. After inserting the CNAME for _acme-challenge.intern.domain.tld at domain.tld, i used that DNS alias mode field of the Pfsense ACME Package in the Pfsense Gui and inserted there: intern.domain.tld.

      Issueing the certificate shows in the Logs of the Bind server for the zone intern.domain.tld, that the TXT record _acme-challenge.intern.domain.tld is inserted correctly into the zone intern.domain.tld. According to the logs Lets encrypt tries then to verify the TXT record but instead of calling for _acme-challenge.intern.domain.tld it calls for _acme-challenge.domain.tld, but obviously there is no TXT record of that name, because it was inserted at intern.domain.tld.

      So there is no query for _acme-challenge.intern.domain.tld in the bind Logs. Afterwards it removes the TXT record correctly and stops with the log: pfsense.domain.tld:Verify error:No TXT record found at _acme-challenge.domain.tld.

      I tried to check this "Enable DNS domain alias mode:" but that one doesnt work at all.

      Getting certificates for pfsense.intern.domain.tld with this setup works perfectly, without that DNS Alias mode.

      I tested this on Pfsense 2.6 with ACME package 0.7.3.

      Is this a problem within the ACME package or is this something inside the Pfsense scripting or do i misunderstand something?

      <a href="https://carsonlam.ca">bintang88</a>
      <a href="https://carsonlam.ca">slot88</a>

      P 1 Reply Last reply Reply Quote 0
      • P
        pete35 @pete35
        last edited by

        Found the solution:

        there must be 2 CNAME records according to
        https://github.com/acmesh-official/acme.sh/issues/2789

        one for _acme-challenge.domain,tld to _acme-challenge.domain.tld
        and a second one for _acme-challenge.pfense.domain.tld to _acme-challenge.domain.tld.

        <a href="https://carsonlam.ca">bintang88</a>
        <a href="https://carsonlam.ca">slot88</a>

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