SSL letsencrypt issues with 'www' subdomain

When adding a new SSL cert from Letsencrypt to a virtual server, the system automatically creates a cert for the top level domain eg 'mydomain .com'. It doesn't also create one for the 'www' version. As such when accessing the site via 'www.mydomain.com' most browsers throw up a warning about the cert not being valid for the domain/subdomain as the cert only represent 'mydomain.com'

When trying to create a cert for the 'www' subdomain, Virtualmin complains that this isn't possible and that you need to go to the virtual server -> website options. However, it doesn't elaborate on this. So the only logical option seems to be to enable 'website matches all subdomains'. However, this breaks all virtual servers / website using a subdomain of the main domain eg 'sub.mydomain.com'. It also doesn't appear to fix the cert issue.

Can virtualmin be setup to create a ssl cert for both the top/base level domain AND the 'www' subdomain by default? Or at least provide the option to do so?

Status: 
Closed (fixed)

Comments

Yes, this will be fixed in the next Virtualmin release.

Status: Active ยป Fixed