Certificate created with wrong domain?

My domain is: awstats.arpnic.net

I ran this command: sudo certbot --apache -d awstats.arpnic.net

It produced this output: <lost in history, but indicated no problems>

My web server is (include version): httpd-2.4.37-65.module+el8.10.0+23042+b3baf0f4.4.x86_64

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

My hosting provider, if applicable, is: me

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 4.1.1

Afer running certbot, when I connect to https://awstats.arpnic.net I get an error about bad domain. Looks like the certificate was issued for a different vhost. I have no idea why!

N/M I found the problem while looking to add details... for some reason the SSLCertificateFile and SSLCertificateKeyFile lines weren't written into my vhost, so it was falling back to the default vhost. Crisis averted!

3 Likes