TITLE:
Letsencrypt is trying to validate www on subdomain even if www is turned off
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk web pro edition, Version 17.8.11 Update #24. Ubuntu 16.04.5 LTS
PROBLEM DESCRIPTION:When subdomain is created as a separate domain, so it has it's own home directory, independent the root domain, Plesk is trying to validate www.subdomian.example.com when:
Hosting settings> Preferred domain: selected without www
LetsEncrypt > Select what else can be secured Include a "www" subdomain for the domain and each selected alias: this is unchecked
from /var/log/plesk/panel.log
[2018-10-12 05:09:03.034] ERR [extension/letsencrypt] Domain validation failed for www.subdomain.domain.com: Invalid response from https://acme-v01.api.letsencrypt.org/acme/authz/f7X5ED-YfKcONPaMCYMwZohH3hG1TjRlXs_bsz-yS_E.
Details:
Type: urn:acme:error:dns
Status: 400
Detail: DNS problem: NXDOMAIN looking up A for www.subdomain.domain.com
STEPS TO REPRODUCE:Hosting settings> Preferred domain: selected without www
LetsEncrypt > Select what else can be secured Include a "www" subdomain for the domain and each selected alias: this is unchecked
from /var/log/plesk/panel.log
[2018-10-12 05:09:03.034] ERR [extension/letsencrypt] Domain validation failed for www.subdomain.domain.com: Invalid response from https://acme-v01.api.letsencrypt.org/acme/authz/f7X5ED-YfKcONPaMCYMwZohH3hG1TjRlXs_bsz-yS_E.
Details:
Type: urn:acme:error:dns
Status: 400
Detail: DNS problem: NXDOMAIN looking up A for www.subdomain.domain.com
Create subdomain as a separate domain with Add domain, this is important, not add subdomain.
Hosting settings> Preferred domain: selected without www
LetsEncrypt > Select what else can be secured Include a "www" subdomain for the domain and each selected alias: this is unchecked
See logs.
ACTUAL RESULT:Hosting settings> Preferred domain: selected without www
LetsEncrypt > Select what else can be secured Include a "www" subdomain for the domain and each selected alias: this is unchecked
See logs.
[2018-10-12 05:09:03.034] ERR [extension/letsencrypt] Domain validation failed for www.subdomain.domain.com: Invalid response from https://acme-v01.api.letsencrypt.org/acme/authz/f7X5ED-YfKcONPaMCYMwZohH3hG1TjRlXs_bsz-yS_E.
Details:
Type: urn:acme:error:dns
Status: 400
Detail: DNS problem: NXDOMAIN looking up A for www.subdomain.domain.com
EXPECTED RESULT:Details:
Type: urn:acme:error:dns
Status: 400
Detail: DNS problem: NXDOMAIN looking up A for www.subdomain.domain.com
Plesk Letsencrypt extension stop looking for a nonexistent subdomain.
ANY ADDITIONAL INFORMATION:With multiple subdomains, this can lead to fast Letsencrypt quota limit exceeded.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Help with sorting out