Open sevaa opened 2 years ago
You can work around the issue by supplying the 2nd level domain as the domain
arg and moving the subdomain part into the name
portion. In other words, the operation succeeds if instead of "domain": "test.boo.org","name": "_acme-challenge"
we provide "domain": "boo.org","name": "_acme-challenge.test"
.
Tbe fix boils down to the cpanel_zone = max(matching_zones, key = len)
line in _get_zone_and_name
; were it to use the min
instead, the workaround would kick in and the whole thing would work. PR #19 does exactly that.
Trying to use certbot-dns-cpanel against a subdomain hosted with Cpanel 102.0.23.
There an add-on domain, yarxi.ru. There is a subdomain underneath that, test.yarxi.ru. I'm issuing the following command:
certbot run --authenticator certbot-dns-cpanel:cpanel --installer certbot-dns-cpanel:cpanel --certbot-dns-cpanel:cpanel-credentials cred.ini --logs-dir . --config-dir . --work-dir . -d test.yarxi.ru,www.test.yarxi.ru
and getting the following output:
The debug log is attached.
letsencrypt.zip
EDIT: it boils down to an error in response to the
ZoneEdit/add_zone_record
API method:That's misconfiguration of the site, not a bug in certbot-dns-cpanel.