-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duckdns can't obtain cert after upgrade to 1.12.5 #1869
Comments
I have exactly the same issue. Upgraded to 1.12.5, modified the config as required by #1785, and now get the same negative result as above (Challenge is invalid). I am not sure which was the last working version. I also tried reinstalling the plugin. If I remove the aliases, the certificate request works fine for the duckdns domain. |
Same behavior here. I reconfigured DuckDNS settings following #1785 according to updated documentation, so that I also made sure CNAME DNS record is as stated by the documentation. As a result, I'm getting If I remember correctly, it was working before, when my domain was in both |
Same exact issue with my setup. Didn't know about the change with #1785 so my cert expired. I updated as discussed above and got exactly the same failure. Edit: Something fixed it. Only significant change I made is that I forwarded my 'A' record to the duckdns domain name. But I also reverted to an older version of DuckDNS (through a Snapshot) and got that working. Then I upgraded to latest and it was still able to create a cert. |
I am also hitting this issue. @rruizGit what do you mean forwarding your 'A' record? Did you just create a new A record with the current IP address of your home assistant? |
Alright, well I worked around this by turning off the certs in duckdns and installing the let's encrypt addon and using that to generate the certificates for me. |
Sorry, crazy things going on in my life. All I did was go to my Domain/DNS host and have it point my 'A' record to the IP address of my DuckDNS IP. But truthfully, not sure if that fixed the issue or not. It could very well be that I got it to work with the previous version and then upgraded. For all I know when that cert expires the latest code could fail again. |
I am also hitting this issue. What is happening is that the addon is requesting challenges for both the alias(es) as well as the domain(s). The second challenge is overwriting the first challenge before the challenge validation is taking place, thus resulting in a failed validation. As a temporary workaround
Edit: |
Same here. Since update cert cannot be renew. |
Spent too much time on this. Duck DNS addon cannot properly work with renewing cert for domain with aliases at this moment. I'm going to Duck DNS (for DDNS service) with Let's encrypt addon combo. It is required to set auto starting Let's encrypt every day/week or so. |
@sigo, do you mind sharing how you setup Let's Encrypt with aliases to get this working? I'm going through this yet again. |
@rruizGit sure, but the configs isn't rocket science. I'll provide quick guide. Config details depends on DNS provider (Supported DNS providers). Let's Encrypt documentation. It is a bit lengthy due to many supported DNS providers. Worth reading.
lets_encrypt:
accept_terms: false
certfile: fullchain.pem
keyfile: privkey.pem
token: <SECRET>
domains:
- <SECRET>.duckdns.org
aliases: []
seconds: 300
email: <SECRET>
domains:
- <SECRET>
certfile: fullchain.pem
keyfile: privkey.pem
challenge: dns
dns:
provider: dns-cloudflare
cloudflare_api_token: <SECRET>
As a bonus point, you should create some scheduled job for recreating certificate. Renew process is run only on |
@sigo, thank you, sir! |
Thanks, this workaround works for me too. Hopefully I won’t need to do this every time though… |
I found the root cause: Since dehydrated 0.6.0, dehydrated change the domain validation strategy. Now they, deploy all TXT for all the domains, and validate all the domains. This fails because when dehydrated starts to validate we only have the last TXT record in duckdns.org dehydrated doesn't allow to change to the old strategy: |
Can we pin the requirement on |
The problem is not DuckDNS, is that dehydrated now is incompatible with DuckDNS for multidomains alias.
getssl: |
My semi-manual way works, but it is workaround. It may work better (via DuckDNS). I think @marcomsousa's research is very valuable here - and it doesn't seems like "I think i know the issue". |
I changed the hook.sh to print some debug information, so I'm 100% sure.
It's easy to change to acme.sh or getssl (removing dehydrated) and complete fix this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nope, still broken. Same as before, removing the aliases and then adding them back temporarily resolves the issue (until the next renewal) |
Any update on this issue? |
I hit this problem 3 days ago. Thanks for the manual workaround, did the job for now but the issue is still not fixed... |
I also have this issue |
The issue still persists with DuckDNS 1.14.0 |
Now my certs expired and DuckDNS 1.14.0 didn't renew because of the alias, once again... It has not worked a single time. Fix from @Veldkornet doesn't work on 1.14.0. It fetches the cert after removing aliases but after adding the alias back and restarting the addon it doesn't fetch due to "Skipping renew!". Update: Restarting home assistant resolved the issue. Even though /ssl/fullchain.pem and /ssl/privkey.pem was updated they were not applied until after restart. Old cert cached somewhere? |
Still broken... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still broken |
Thanks for keeping the issue alive. I just wish they would fix it! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nope. It is, as always, still broken. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's busted as always Mr Bot |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
No |
Still present |
Commenting to block the stale-bot. 4 years, devs!! Come on, at least look at it! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Definitely not solved yet |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
NOT FIXED |
domains:
duckdns is a legacy integration however via Lets encypt add on a plus. |
The problem
After upgrading addon to 1.12.5 version, it can't obtain certificate
Environment
Problem-relevant configuration
Traceback/Error logs
Additional information
All works great before upgrade
The text was updated successfully, but these errors were encountered: