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
add dns-XXX-rm in dnsapi #79
Comments
yes, maybe later. |
I wrote a tiny library called lexicon that provides a generic way to manipulate (create/update/delete) DNS records on DNS providers who have API's. There are 10 providers supported right now, but we're adding more all the time. |
Oh, you are sooooo cool. I will play with it soon, and maybe we can make a way to work with lexicon. |
Hey @Neilpang that looks good. 👍 |
I second the original request. Would it also be possible to add a commit hook called after setting up all the records? |
Is there a need for some help with this? Looks like a call to a DNS delete function would be good at around line 1747. If the record is deleted from the DNS server, does ACME.sh have the logic to create a new certificate and a new record, or will it attempt to use the old record and fail out of the process? From what I understand if you use DNS based authentication you basically create a new cert every renewal cycle instead of actually renewing the existing cert? |
@dschaper The txt record should be deleted after the validation. it's no use anymore. I just don't have enough time to implement for all the dns apis. And, if implemented, it should not be added at line 1747, it should be added in the function "_clearup" function. |
Thanks! I think I know where to start and I'll PR when/if I have anything worth submitting. |
If I may add a request. As parameters for the Explanation: When creating a new entry, a nice API would return an ID of the newly created entry. This could be used to easily and securely remove it again. If the API does not return such a value, then the Thanks for all the great work! 🎉 |
@noplanman All the api functions will be run in a sub shell, in If you want to passed something from the In the _savedomainconf "myDomainId" "$domainId"
_savedomainconf "myRecordId" "$recordId" In the domainId="$(_readdomainconf myDomainId )"
recordId="$(_readdomainconf myRecordId)"
#after using, please remove them from the conf file.
_cleardomainconf myDomainId
_cleardomainconf myRecordId It will be a better idea that: in the Please save the really important values in the conf file. |
Ok, that works perfectly too, thanks for pointing that out! In that case, I'll happily wait for this to be implemented and supply you with some good vibes 😺 |
@noplanman |
@noplanman added. Please take a look. |
@Neilpang Thanks a million, works perfectly 🎉 |
Hi,
Would it be possible to add support to remove "_acme-challenge" TXT records after validation via DNSAPI?
Regrads
Frank
The text was updated successfully, but these errors were encountered: