-
-
Notifications
You must be signed in to change notification settings - Fork 186
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 script broken? #575
Comments
Hi @zapy85, I'm not sure why you're saying it won't work. The log you posted shows a successful cert acquisition and installation. Were you hoping the plugin would update your dynamic IP as well? Because the plugin does not do that. It's only used for obtaining certs for your duckdns domain. |
oh my bad then, i was/thought i had read that it also updated against DuckDNS as well when it created the certificate. PoshACME is part of another PS script that generates and installs the LE certificate in to its services that uses https for a VMS/CCTV platform from Milestone [That has a free-to-use software for 8 cameras] but they dont have any built in support for LE which would have been the best i presume. I am really confused as from where i read that it updated the DNS as well, might've been me as well that just "read into it" and got it all wrong. If this isn't wanted you could just delete the ticket and ill look at implementing the update feature with some other scripts. |
Not a problem. But yeah, I don't think it's a good idea to add the IP update functionality into the plugin. It shouldn't be too difficult to add it to your existing script though. You already have all of the info you'd need for an IP update call in variables and their docs make it seem like should be as simple as this. $tokenPlain = [pscredential]::new('a',$Secret).GetNetworkCredential().Password
$updateUrl = 'https://www.duckdns.org/update?domains={0}&token={1}' -f ($Domain -join ','),$tokenPlain
Invoke-RestMethod $updateUrl You could add it just before or after your call to |
Trying to use PoshACME with plugin DuckDNS but it wont work.
i see DuckDNS touch the ip but it does not update it, "last updated" gets reset every time.
Part of Script:
The text was updated successfully, but these errors were encountered: