Sorry, I’m ignoring the template, because it doesn’t seem relevant for my question.
I’m trying to run certbot with ACME v2 to get a wildcard certifcate. Since I can’t host on one of the supported dns-plugin sites (i’m European, none operate in my country) I need to go with the manual method with pre and post validation hooks. Therefor I’m running the following command:
Because I’m creating both validation hooks myself it requires some testing. I was surprised to encounter the following error at one point:
There were too many requests of a given type :: Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
I understand there is a failed validation limit of 5 failures per account. Unfortunately something like --dry-run or -n doesn’t work with the above command. How can I create the validation hooks with such a limit? What am I missing here?
In this case, use "--staging" or "--test-cert". (They're equivalent.)
If Certbot is older than 0.22.2 or so, you have to use "--server https://acme-staging-v02.api.letsencrypt.org/directory". (In older versions, the options above use the ACME v1 staging server.)
Ah that’s great to hear. Then that solved my problem.
Just a sidenote: a failed validations limit of 60 per hour still isn’t much in my case. Because I’m still trying to figure out how to pass through the arguments to my PHP script from where I can easily use my hosts PHP API library. That alone easily took me 10 attempts in a very short time window. But I think I should be good!