Hello,
I am using Certbot to generate Let's Encrypt certificates for a wildcard domaim for a domain (*.dusnet.xyz) hosted by Google Domains (not Google Cloud)
So i have opted for wildcard for few reasons however but I have a hard time to find the right configuration and plugin specific to Google Domains (i found a lot for Google Cloud but it doesn't help has the mechanism is different)
I am using the plugin certbot-dns-google-domains
The operating system my Certbot runs on is Debian 12, certbot is 2.1.0
When I use Certbot in a standard way for a single certificate (es.dusnet.xyz) , stand alone server, exposing port 80, then it's working fine. I get the certificate as expected (single domain). The certificate end up in the default folder /etc/letsencrypt/live/....which is then shared (this part works fine too)
However the port 80 will not be open once the network is fully configured so, challenge DNS is probably my only option to automate the renewal.
I have tried the TXT challenge but I keep getting an error that the TXT record doesn't exist using cerbot even if I can confirm the record is correct using a dig command. Dig return the correct information.
Using the API if my preferred option but at this point, I am not sure if i made mistake creating the .ini file that goes with the plugin. I didn't find any examples i could use.
And changing from Google DNS to Cloudflare is not an option
Here is the command I used
certbot certonly --authenticator 'dns-google-domains' --dns-google-domains-credentials '/var/lib/letsencrypt/dns_google_domains_credentials.ini' --server 'https://acme-v02.api.letsencrypt.org/directory' --dns-google-domains-zone 'dusnet.xyz' -d '*.dusnet.xyz'
Here is the error I get.
certbot: error: unrecognized arguments: --dns-google-domains-credentials /var/lib/letsencrypt/dns_google_domains_credentials.ini --dns-google-domains-zone dusnet.xyz
The .ini file (/var/lib/letsencrypt/dns_google_domains_credentials.ini) was created using nano with the 2 following lines (updated with the correct user name and password for the wildcard)
dns_google_domains_username = *.dusnet.xyz_username
dns_google_domains_password = *.dusnet.xyz_password
Certbot-dns-google-domains seems to be the right plugin but a sample of the .ini and the command will help
Any help will be appreciate !
Thank you