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

    ACME for CNAMEs

    Scheduled Pinned Locked Moved ACME
    4 Posts 3 Posters 922 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.
    • S
      sgw
      last edited by sgw

      I try to add some new certificates to a pfSense-23.09.1 appliance.

      The corresponding DNS-Records are CNAMEs, and as far as I remember, this works in other setups I have.
      I even cross-checked right now.

      At the problematic aplliance I get:

      FOUND domainitemwebroot
      put token at: /tmp/haproxy_chroot/.well-known/acme-challenge//4ovavh_tOff2mFFvRuMwLr0YLSZQTl_Ye_l5ky4_oJc
      [Mon Feb 12 12:38:20 CET 2024] Pending, The CA is processing your order, please just wait. (1/30)
      [Mon Feb 12 12:38:23 CET 2024] Found domain http api file: /tmp/acme/grafana/httpapi/pfSenseacme.sh
      [Mon Feb 12 12:38:23 CET 2024] grafana.iom.at:Verify error:DNS problem: NXDOMAIN looking up A for grafana.mytld - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for grafana.mytld - check that a DNS record exists for this domain
      [Mon Feb 12 12:38:24 CET 2024] Please check log file for more details: /tmp/acme/grafana/acme_issuecert.log
      

      maybe the admin there accidentally added a dot at the end of the IP:

      # dig 
      grafana.my.tld.		43200	IN	CNAME	85.12.34.59.
      

      I asked him to check.

      but my question: ACME should work with CNAMEs, right?

      EDIT: solved ... the CNAME-records were wrong .... he set them to an IP instead a FQDN.

      GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @sgw
        last edited by Gertjan

        @sgw said in ACME for CNAMEs:

        dig

        grafana.my.tld. 43200 IN CNAME 85.12.34.59.

        What dns server was 'dig' using to find that info ?

        @sgw said in ACME for CNAMEs:

        Verify error:DNS problem: NXDOMAIN looking up A for grafana.mytld - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for grafana.mytld - check that a DNS record exists for this domain

        The DNS servers Letsencrypt was using told them "grafana.mytld" is unknown. No A, no AAAA record.

        When the ascme.sh script, the DNS method, updates the DNS info, only the master DNS (your domain name master DNS server) is updated.
        After a while the (at least) one or more slave domain servers are also updated by the master domain DNS server.
        After receiving the instructions to update your zone, it will signal all the slaves involved that a zone (your "grafana.mytld") was updated. It's up to the slave(s) to sync when ever they see fit.
        No one can tell how long this takes, we all hope 'immediately' but that's surely not generally never the case.

        This is why this option exists :

        2a183c41-4ff4-41c6-8aef-2385a01ad29b-image.png

        edit : after some more thinking :
        For me, it looks like Letsencrypt could not find your "grafana.mytld", as that one should exists already.
        acme.sh just adds a subdomain with a specific name : "_acme-challenge." And then it adds into this sub domain a TXT string with a 'secret' number.
        Do you have general DNS domain name issues ?
        Use https://www.zonemaster.net/en/run-test : all is fine ?

        @sgw said in ACME for CNAMEs:

        EDIT: solved ... the CNAME-records were wrong .... he set them to an IP instead a FQDN.

        Ah, ok, dns issues then.
        Glad you got i solved.

        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
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @sgw
          last edited by johnpoz

          @sgw said in ACME for CNAMEs:

          EDIT: solved ... the CNAME-records were wrong .... he set them to an IP instead a FQDN.

          That is not solved CNAMEs never should point to an IP.. They are to point to another domain..

          That is not the point of cname - if you want a fqdn to point to a IP, that is just a simple A record.

          edit: hahaha - oh I read that wrong, hahsh - I thought pointed them to IP to fix the problem, not that they were pointing to an IP and changed to point to domain.. Glad to hear you got it sorted.

          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

          S 1 Reply Last reply Reply Quote 0
          • S
            sgw @johnpoz
            last edited by

            @johnpoz @Gertjan thanks to both of you

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