Open orcaman98 opened 1 month ago
Edited to mark config file samples as code snippets to prevent misleading display errors.
I'm seeing this as well.
Strike that. I logged in via SSH and found the config file (/mnt/data/supervisor/addons/data/core_letsencrypt/options.json
) and found that the dns key had and empty object. For example:
{
"domains": [
"domain1",
"domain2"
],
"email": "***",
"keyfile": "privkey.pem",
"certfile": "fullchain.pem",
"challenge": "dns",
"dns": {}
}
I had simply entered the wrong thing in my configuration. When I changed it to look like this it worked.
If I format mine the same way you did yours, I get: Failed to save add-on configuration, Missing option 'dns' in root in Let's Encrypt (core_letsencrypt)
I suppose it's noteworthy that I did NOT get that error in my earlier attempts.
I'm on HA OS, and haven't yet found an equivalent store with that json you posted.
Yeah. I'm on HAOS as well. I don't see anywhere in the UI to specify it either. I recently went to the trouble of setting up ssh access to the host OS specifically so I could workaround a handful of deficiencies in the UI.
I did try the Nginx Proxy Manager, but it doesn't support DNS ACME challenges on my hosting provider. And I think I would have had to manually copy certs into the add-on container...which requires host ssh access.
At least the official NGINX Home Assistant SSL proxy mounts /ssl
and the Lets Encrypt add on works with my DNS provider.
I'm using this addon https://github.com/hassio-addons/addon-ssh for SSH access, and /data and /mnt appear empty with ls -a
Describe the issue you are experiencing
Let's Encrypt fails to obtain certificate using DNS method.
Log contains these key lines:
[16:51:18] INFO: Selected DNS Provider: null certbot: error: unrecognized arguments: --null --null-credentials /data/dnsapikey
Used configuration:
Example configuration in addon documentation:
Issue has existed since the introduction of Dynu DNS support for this add-on, as far as I know. I've previously obtained a certificate by using certbot directly, bypassing this add-on. I just got tired of waiting for someone else to report it.
The slight email formatting difference in the configuration does not seem to be relevant in testing. I think the formatting I initially used and show here was generated by the form.
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Let's Encrypt
What is the version of the add-on?
5.2.1
Steps to reproduce the issue
1.Configure addon using form, possibly edit generated config file.
System Health information
System Information
Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 13.1 -- | -- update_channel | stable supervisor_version | supervisor-2024.10.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 234.3 GB disk_used | 12.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.4.1), Let's Encrypt (5.2.1), Z-Wave JS UI (3.13.2), openWakeWord (1.10.0), Whisper (2.1.2), Advanced SSH & Web Terminal (19.0.0), Studio Code Server (5.17.1), NGINX Home Assistant SSL proxy (3.11.0), Piper (1.5.2), Rhasspy 3 (en) (0.0.4)Dashboards
dashboards | 2 -- | -- resources | 0 views | 7 mode | storageRecorder
oldest_recorder_run | October 3, 2024 at 4:38 AM -- | -- current_recorder_run | October 8, 2024 at 4:49 PM estimated_db_size | 60.46 MiB database_engine | sqlite database_version | 3.45.3Anything in the Supervisor logs that might be useful for us?
Anything in the add-on logs that might be useful for us?
Additional information
No response