Unable to request a certificate via the Truenas UI

TrueNAS Scale community edition: v25.04.1

UPDATE: For anyone affected by this, I’ve found that this issue has been identified and fixed in v25.10: NAS-136223 / 25.10 / Fix ACME registration failures due to removed contact field support (by sonicaj) by bugclerk · Pull Request #16646 · truenas/middleware · GitHub

Having done this on my old NAS I though this would take a few minutes to copy the relevant data over and generate a certificate on my new NAS. Sadly not the case.

In general I followed the instructions here: Let's Encrypt Certificate for TrueNAS SCALE | Dan's Wiki

Everything’s fine until I click the “spanner” to create the ACME certificate as at this point it fails with the error:

File "/usr/lib/python3/dist-packages/middlewared/plugins/acme_protocol.py", line 184, in do_create
    'contact': register.body.contact[0],
               ~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: tuple index out of range

When trying to recreate the CSR and re-run it I do not see the error above but do see an error in the logs saying

certificate.create
Initial validation complete.

Either way, a certificate is not generated.

Any help on diagnosing or fixing this would be appreciated.

2 Likes

I am having the same issue…

1 Like

Not sure how badly (or why) iX f-ed up the cert process, nor why they apparently won’t bother fixing it until 25.10, but there’s another option:

See also this thread:

They have 25.04.2 listed as one of the versions this will be fixed in, in the related Jira report:
https://ixsystems.atlassian.net/browse/NAS-136223

And here is the related PR for 25.04.2 posted a month ago:

1 Like