Multiple subdomains problem


I run multiple WordPress sites under various subdomains. The last certificate renewal failed, but thanks to Google and this forum, this now sort of works. This is what happens now.

curl -i


curl: (51) SSL: certificate subject name ( does not match target host name '

This runs with no errors:

certbot --apache certonly -w ~vds/www/ -d -d -d -d -d

Please find log below.

Any and all hints and suggestions appreciated.

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

certbot --apache certonly -w ~vds/www/ -d -d -d -d -d

It produced this output:

certbot --apache certonly -w ~vds/www/ -d -d -d -d -d
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache

You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/

It contains these names:,,

You requested these names for the new certificate:,,,,

Do you want to expand and replace this existing certificate with the new
(E)xpand/(C)ancel: E
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for
http-01 challenge for
http-01 challenge for
http-01 challenge for
http-01 challenge for
Waiting for verification...
Cleaning up challenges

 - Congratulations! Your certificate and chain have been saved at:
   Your key file has been saved at:
   Your cert will expire on 2018-06-12. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:
   Donating to EFF:          

My web server is (include version):
Apache/2.4.18 (Ubuntu) mod_R/1.2.8 R/3.2.3 OpenSSL/1.0.2g mod_apreq2-20090110/2.8.0

The operating system my web server runs on is (include version):

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.4 LTS
Release:	16.04
Codename:	xenial

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):


I’m using a control panel to manage my site (no, or provide the name and version of the control panel):


Hi @rolfmblindgren,

You should review the path used in your Apache’s SSL directives, keep in mind that the new cert covering,,, and is located in this path /etc/letsencrypt/live/ and maybe your apache configuration is using /etc/letsencrypt/live/


1 Like

That’s it exactly.

Thanks! :smiley:


On a separate note, though.

The SSL plugin that WordPress uses, places the files elsewhere. This works, obviously, but it’s confusing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.