Browse Source
Implements validation using CNAMEs and RFC2138, as described in the Let's Encrypt documentation. For instance, if requesting the domain "test.net" with a CNAME from "_acme-challenge.test.net" to "_acme-challenge.ledomain.net". As per the spec this is fully supported, but using RFC2138 and nsupdate, acme.sh did not support this properly, instead trying to add the record to the original fulldomain unconditionally. To implement this, this commit adds an additional environment variable, NSUPDATE_CNAME_ZONE, which would contain the target zone, for instance in the example above, "ledomain.net". If this variable is set, nsupdate then adds/removes the _acme-validation TXT record to that zone instead of the requested zone, as well as printing a helpful message mentioning that the CNAME must exist for this to succeed.pull/2506/head
Joshua Boniface
5 years ago
1 changed files with 29 additions and 4 deletions
Loading…
Reference in new issue