Hello! I am struggling a little with setting Letsencrypt up on my server properly. I am running a few websites from that virtual server using Apache, and am running the following command:
There are no error messages or problems when running the script, but unfortunately, only the www links seem to work without an error page in the Browser. Firefox displays " Error code: SSL_ERROR_BAD_CERT_DOMAIN" when trying to open https://example1.com or https://example2.com
Did you create a cert with only the www. versions before that one? If you did then you’ll have started a new certificate lineage as you didn’t use the --expand option, so you’ll need to update the apache config to use the new cert.
I have noticed that the certificate contained in the www.example1.com directory was the only one that listed all domains, and set the certificate setting for the site configuration in the others to that file and restarted Apache. Alas, to the same result.