I’m trying to get some answers from the documentation to no avail.
Let’s say you’re running certbot for a multiple level domain like this:
certbot ... -d domain.com *.domain.com *.sub.domain.com ... --manual-auth-hook "myscript.sh"
I understand that
myscript.sh will be called 3 times with env variables:
Now, let’s focus on the call for validating *.sub.domain.com:
Do I need to set a TXT record on
_acme-challenge.sub.domain.com or on
What is it going to be the global variable
myscript.sh for validating *.sub.domain.com?
EDIT: CERTBOT_DOMAIN is "sub.domain.com"
It basically "_acme-challenge" replaces the "*" in the wildcard request.
Yes to what option?
Also, what’s going to be
A request for both of those would require TWO _acme-challenge TXT records:
So, yes, it's not an "a" OR "b" question.
Now, how is myscript.sh going to know that I need to set _acme-challenge.sub.domain.com?
CERTBOT_DOMAIN be sub.domain.com when called for validating *.sub.domain.com?
I’m not 100% certain - but it is NOT “domain.com”
It is either “*.sub.domain.com” or “sub.domain.com”.
Perhaps you can test with
echo %var% >> log.file to your script and see what value is there
CERTBOT_DOMAIN doesn’t include the “
In that case, it would be “
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.