Let's Encrypt Failing and Subdomains Not Working

Hi Guys - loving Yunohost and made a few Apps for our business with subdomains which worked fine on https getting the Let’s Encrypt. But now everytime I try to make a let’s encrypt it’s failing. Logs below:

args:
force: true
no_checks: true
ended_at: 2024-05-13 08:32:09.603936
error: 'Certificate installation for tasks.maindomain.tld failed !

Exception: Could not sign the new certificate’
interface: api
operation: letsencrypt_cert_install
parent: null
related_to:

    • domain
    • tasks.maindomain.tld
      started_at: 2024-05-13 08:32:04.503839
      success: false
      yunohost_version: 11.2.11.3

============

2024-05-13 08:32:04,513: DEBUG - Making sure tmp folders exists…
2024-05-13 08:32:04,514: DEBUG - Reusing IPv4 from cache: xx.xx.xx.xx
2024-05-13 08:32:04,514: DEBUG - Reusing IPv6 from cache: None
2024-05-13 08:32:04,515: DEBUG - Prepare key and certificate signing request (CSR) for tasks.maindomain.tld…
2024-05-13 08:32:04,911: DEBUG - Saving to /var/www/.well-known/acme-challenge-private/tasks.maindomain.tld.csr.
2024-05-13 08:32:04,912: DEBUG - Now using ACME Tiny to sign the certificate…
2024-05-13 08:32:04,912: INFO - Parsing account key…
2024-05-13 08:32:04,921: INFO - Parsing CSR…
2024-05-13 08:32:04,932: INFO - Found domains: tasks.maindomain.tld
2024-05-13 08:32:04,933: INFO - Getting directory…
2024-05-13 08:32:05,279: INFO - Directory found!
2024-05-13 08:32:05,280: INFO - Registering account…
2024-05-13 08:32:06,169: INFO - Already registered!
2024-05-13 08:32:06,170: INFO - Creating new order…
2024-05-13 08:32:07,056: INFO - Order created!
2024-05-13 08:32:07,892: INFO - Verifying tasks.maindomain.tld…
2024-05-13 08:32:09,601: ERROR - Challenge did not pass for tasks.maindomain.tld: {‘identifier’: {‘type’: ‘dns’, ‘value’: ‘tasks.maindomain.tld’}, ‘status’: ‘invalid’, ‘expires’: ‘2024-05-20T08:32:06Z’, ‘challenges’: [{‘type’: ‘http-01’, ‘status’: ‘invalid’, ‘error’: {‘type’: ‘urn:ietf:params:acme:error:dns’, ‘detail’: ‘DNS problem: NXDOMAIN looking up A for tasks.maindomain.tld - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for tasks.maindomain.tld - check that a DNS record exists for this domain’, ‘status’: 400}, ‘url’: ‘https://acme-v02.api.letsencrypt.org/acme/chall-v3/350169926547/xP0VNA’, ‘token’: ‘t8cNQlPjZa2QL0E7-IM6WhkHq8inVZglBrGShkCT1i8’, ‘validated’: ‘2024-05-13T08:32:08Z’}]}
2024-05-13 08:32:09,603: ERROR - Certificate installation for tasks.maindomain.tld failed !
Exception: Could not sign the new certificate

It seems you need declare this sub.domain on DNS zone before…