www. always added to alias subdomain breaking Letsencrypt
Description:
ISPConfig erroneously adds the www. prefix to alias domains regardless of the settings chosen causing LetsEncrypt to fail to issue the certificate. no matter what I do I simply cannot get it to try to issue the certificate without the www. prefix. I have even checked IPSConfig's database entries in web_domain and is_subdomainwww is always set to 1, and setting it to 0 and retrying has no effect (if this is even the relevant entry). It should not be necessary to add an incorrect DNS entry just to get this to work.
This is a new domain, added in the past couple of days.
As a side note, this seems to have broken in a recent update as earlier aliases worked.
Proposed fix:
ISPConfig should recognise the Auto-Subdomain option in the Web Aliasdomain options. Actually, I dread going anywhere near the domain settings and anything to do with LetsEncrypt as it invariably breaks something each time, or simply doesn't update (e.g. remove domains), or do what is expected. It is extremely fragile and could do with revising.
Letsencrypt log:
FailedChallenges: Failed authorization procedure. www.mail.xxxxx.com (http-01): urn:acme:error:dns
Environment:
ISPConfig 3.1.11 on Ubuntu 16.04.1, Apache 2.4.18, PHP 7.0.28
References
https://www.howtoforge.com/community/threads/lets-encrypt-cert-without-www-prefix.77016/
#4983 (closed) (possibly related)
Thank you!