My DNS-provider has an API to change the DNS-entries.
The documentation is under https://beta.api.core-networks.de/doc/
First I have to create an auth-token with my login-credentials. The token is only valid for 1 hour. So every time I need a new own.
How can I run certbot-auto with the API?
Hi @Tjure,
Welcome to the community forum!
Take a look at the manual-auth-hook
at https://certbot.eff.org/docs/using.html?highlight=dns. Hereās an example of another client project using it https://github.com/joohoi/acme-dns-certbot-joohoi. As for prompting for credentials each time, youāll need to determine how to best deploy your login creds to your server.
OK, I donāt really understand much of python.
But I understand that certbot sets two enviroment variables.āCERTBOT_DOMAINā and āCERTBOT_VALIDATIONā
So I can use them in a little bash-script with a few lines of ācurlā and certbot will wait for the script to end and will try to authenticate.
When getting a wild-card-certificate will the auth-hook run twice, for domain.tld and *.domain.tld?
If you're including both domain.tld
and *.domain.tld
in the certificate, yes.
Moreover, the second invocation must not delete the TXT
record created by the first invocation.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.