It produced this output: This server’s certificate chain is incomplete. Grade capped to B. Basically missing intermediate certificate when I go post links on Facebook and Twitter. When I use the Facebook sharing debugger I get this
SSL Error: Can’t validate SSL Certificate. Either it is self-signed (which will cause browser warnings) or it is invalid.
Curl Error: Curl error: 60 (SSL_CACERT)
My web server is (include version): Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.21
The operating system my web server runs on is (include version): Linux
My hosting provider, if applicable, is: Local Company
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): 0.36.0
Sorry, my crystal ball isn’t working since last weekend… Therefore, I cannot read your mind on how exactly you got and installed the certificate. Which command line parameters were used exactly?
When the certificate is actually installed by certbot without any manual tampering to the Apache configuration, this error would not occur.
I used what was on the Certbot website, it was about a year ago so I am not exactly certain how I did it other than following the commands on the Certbot website.
[Tue Nov 26 23:30:46.664707 2019] [core:error] [pid 18503] (EAI 2)Name or service not known: AH00547: Could not resolve host name *.80 – ignoring!
[Tue Nov 26 23:30:47.534213 2019] [core:error] [pid 18503] (EAI 2)Name or service not known: AH00547: Could not resolve host name *.80 – ignoring!
VirtualHost configuration:
*:443 indianamat.com (/etc/httpd/conf.d/ssl.conf:56)
And that's the only VirtualHost? That's the complete output?
This doesn't make sense.
Your SSLCertificate* directives are correct. You've configured the chain correctly! If that configuration is being used, and you haven't tampered with Certbot's files, the chain issue reported by SSL Labs is not possible.
For that matter, the "Include /etc/letsencrypt/options-ssl-apache.conf" setting means that the "This server does not support Forward Secrecy with the reference browsers." issue reported by SSL Labs also probably shouldn't be happening.
You should remove the extra ".80" from the VirtualHost. It probably shouldn't cause these issues? But if nothing else, it's probably causing wasteful DNS queries.
Is it possible that Apache hasn't actually been reloaded or restarted recently, and it's running off a different configuration?
Could there be SSLCertificate* settings directly in Apache's main configuration file, or another included file, outside of any VirtualHosts?
Is that the VirtualHost you pasted earlier? /etc/httpd/conf.d/ssl.conf, starting at line 56?
Can an Apache expert confirm what's happening? Is Apache ignoring the erroneous hostname? Is it ignoring the entire VirtualHost specified with the erroneous hostname?
Where else should I look for the Virtual Host? Server stuff isn't my thing, but I can usually find everything I need once told what I need to look for.
I'll restart apache, just to take that potential issue away.