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

    ACMEv2 FreeDNS Issues

    ACME
    1
    3
    636
    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.
    • yuljkY
      yuljk
      last edited by yuljk

      Hi guys - I'm running the latest acme package and I'm having issues requesting a wildcard certificate using the FreeDNS option. I receive the following:-

      [Fri May 17 08:06:15 BST 2019] Multi domain='DNS:somedomain2.co.uk,DNS:.somedomain2.co.uk,DNS:somedomain1.co.uk,DNS:.somedomain1.co.uk'
      [Fri May 17 08:06:15 BST 2019] Getting domain auth token for each domain
      [Fri May 17 08:06:27 BST 2019] Getting webroot for domain='somedomain2.co.uk'
      [Fri May 17 08:06:27 BST 2019] Getting webroot for domain='.somedomain2.co.uk'
      [Fri May 17 08:06:27 BST 2019] Getting webroot for domain='somedomain1.co.uk'
      [Fri May 17 08:06:27 BST 2019] Getting webroot for domain='
      .somedomain1.co.uk'
      [Fri May 17 08:06:28 BST 2019] Found domain api file: /usr/local/pkg/acme/dnsapi/dns_freedns.sh
      [Fri May 17 08:06:28 BST 2019] Add TXT record using FreeDNS
      [Fri May 17 08:06:31 BST 2019] Domain co.uk not found at FreeDNS
      [Fri May 17 08:06:31 BST 2019] Retry loading subdomain page (1 attempts remaining)
      [Fri May 17 08:06:33 BST 2019] Domain co.uk not found at FreeDNS
      [Fri May 17 08:06:33 BST 2019] Error add txt for domain:_acme-challenge.somedomain2.co.uk
      [Fri May 17 08:06:33 BST 2019] Please check log file for more details: /tmp/acme/MultipleDomainWildcardCertificate/acme_issuecert.log

      I've added the domains as *.somedomain.co.uk1 and somedomain.co.uk1 and my second domain as per the documentation.

      error.png

      Any help greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • yuljkY
        yuljk
        last edited by yuljk

        I've just tested this with another domain I have which has a TLD of .uk and the certificate was generated correctly.

        Seems to be related to the section in the script where it 'splits' the subdomain from the TLD, which doesn't work correctly for co.uk and similar TLD's.

        split our full domain name into two parts...

        i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
        i="$(_math "$i" - 1)"
        top_domain="$(echo "$fulldomain" | cut -d. -f "$i"-100)"
        i="$(_math "$i" - 1)"
        sub_domain="$(echo "$fulldomain" | cut -d. -f -"$i")"

        Anyone with better bash skills than me have any ideas how to fix this?

        Kind Regards

        1 Reply Last reply Reply Quote 0
        • yuljkY
          yuljk
          last edited by

          I spoke to the script author regarding this issue and it has now been resolved. There is also a pull request https://github.com/Neilpang/acme.sh/pull/1807

          Issue resolved.

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