Open mattgroves opened 8 months ago
Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade
If it's still not working, please provide the log with --debug 2
, otherwise, nobody can help you.
I believe this can be resolved simply by changing dns_namecom.sh
and adding the perPage parameter as per https://www.name.com/api-docs/domains#ListDomains to line 151 - however, this is not currently working and has been reported to name.com.
Example:
_namecom_get_root() {
domain=$1
i=2
p=1
if ! _namecom_rest GET 'domains?perPage=2000'; then
return 1
fi
# Need to exclude the last field (tld)
numfields=$(echo "$domain" | _egrep_o "\." | wc -l)
while [ $i -le "$numfields" ]; do
host=$(printf "%s" "$domain" | cut -d . -f $i-100)
_debug host "$host"
if [ -z "$host" ]; then
return 1
fi
if _contains "$response" "$host"; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain="$host"
return 0
fi
p=$i
i=$(_math "$i" + 1)
done
return 1
}
Using acme.sh (latest v3.0.8) with a name.com account that has > 1000 domains results in multiple pages of results from _namecom_get_root() in .acme.sh/dnsapi/dns_namecom.sh. The final output in the JSON from this function shows:
The next page (2) is not retrieved, resulting in:
Steps to reproduce
Prepare a wildcard certificate generation with acme.sh against a name.com account that has more than 1000 domains. Example:
Debug log