Please fill out the fields below so we can help you better.
My domain is: cloud.aegee-eindhoven.nl
I ran this command: sudo certbot certonly -d www.aegee-eindhoven.nl -d myadmin.aegee-eindhoven.nl -d cloud.aegee-eindhoven.nl -d aegee-eindhoven.nl
It produced this output: Congratulations! Your certificate and chain have been saved at…
My operating system is (include version): Debian 8
My web server is (include version): nginx
My hosting provider, if applicable, is: NA
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
Description:
I had an old server in which I used letsencrypt to generate certificates for some *.rugebiker.com and *.aegee-eindhoven.nl domains. I just installed a new server and I tried to generate certificates (only for *.aegee-eindhoven.nl domains) using the command above. After validating using the webroot process that I am the owner of those domains, it printed “Congratulations” message, saying also where it stored the certificate. I added the certificate to my nginx configuration (done this many other times) and I know I am pointing to the generated one, and when I try to login to https://cloud.aegee-eindhoven.nl, all browsers give me a certificate error. Firefox prints the following message:
cloud.aegee-eindhoven.nl uses an invalid security certificate. The certificate is only valid for the following names: aegee.rugebiker.com, apps.rugebiker.com, etherpad.rugebiker.com, git.rugebiker.com, mail.rugebiker.com, mattermost.rugebiker.com, myadmin.rugebiker.com, owncloud.rugebiker.com, smtp.rugebiker.com, www.rugebiker.com Error code: SSL_ERROR_BAD_CERT_DOMAIN
So why does firefox tells me that this certificate is for *.rugebiker.com domains when I generated it for *aegee-eindhoven.nl domains?
Thanks in advance
(In the new server I did a fresh install of letsencrypt, so I didn’t copied at all any letsencrypt folder nor configuration from the old one)