DNS-script for core-networks-de for certbot-auto

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?

1 Like

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.

1 Like

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.