Hi,
I have got my wildcard certificate following this link how-to-issue-acmev2-wildcard-with-certbot, then I tried to test the renew before I write commands into crontab, certbot-auto renew --dry-run
It shows error “An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively”, following the link, I think I should do something like this: certbot certonly --manual -d ‘relationmonitor.dk,*.relationmonitor.dk’. But the output is saying “Cert not yet due for renewal” then ask if you want to keep the current one or renew/replace it.
So, if I put this command into crontab, it looks like this command will be pending there for ever without interaction. I wonder if this is correct way to renew wildcard certificate?
If you recall to how you issued that certificate, you would have created some TXT records and placed them in your DNS.
This procedure has to be repeated every time your certificate needs to be renewed. Certbot cannot do this without input from you, which is why a cronjob won't work.
At the end of the day, if you want automatically renewing wildcard certificates, you're going to need to pick a DNS hosting and ACME client combination that supports this workflow.
I am sorry that I just cite the commands from reference page, so relationmonitor.dk is not my domain. My domain is cloudgav.com.
My understanding so far:
For wildcard certificates, we could do that ONLY by "certbot -manual -server ..." with DNS TXT record set by hand, but according to _az said, with "manual" the certificates could not be renewed automatically. So we should rely on external tools like dnsapi · acmesh-official/acme.sh Wiki · GitHub (but this is more like re-issue than renew).
Am I correct? I wonder why we could not make wildcard more intelligently, is there any technique difficulty or certificate requirement? How could I do this more seamlessly?
Yes, all the certs got are issued with “-manual” because I just tried how to renew.
Then, I would try to survey how to combine DNS provider API (@_az has given the link, thanks) and certbot to have my goal done.
Just curious, I want to know this:
It seems non-wildcard like www.cloudgav.com could be issued/renewed easily without my touching with DNS record. Is there any technique difficulty or certificate requirement for wildcard to go in this way?
[edit] At least make the renewal more easily for wildcard since we have proven the ownership for this domain.