I’ve used the letsencrypt client on an apache host, in order to generate certificates for a couple of vhosts.
For the vhosts the following pattern is true:
Browser request for http://mysite.com are redirected to the https url. The browser accepts the cert. Padlock is green. Everything works just fine.
For http://www.mysite.com the browser displays a loud warning about the cert. Chrome gives: NET::ERR_CERT_COMMON_NAME_INVALID
The warning also appears if I navigate directly to the same www-prefixed domain, with ‘https’.
The difference is in the ‘www’.
How use the letsencrypt client to generate certs that work for the ‘www’ prefixed domain?