I generated a ssl certificate for yarnedanddangerousco.com and www.yarnedanddangerousco.com successfully.
I used https://www.ssllabs.com/ssltest/analyze.html?d=yarnedanddangerousco.com to validate and got a trust error for domain yarned which is not in the cert I generated. That was the initial host name I build the system with because it was shorter. However I have since reverted the full hostname for production. A self signed cert was generated by Apache I assume during installation. I have done this before without issue and have used certbot to generate and use certs. I realized what the problem was and found a post that said to use http -S and that is when I got the following error:
AH00526: Syntax error on line 10 of /etc/httpd/sites-available/yarnedanddangerousco.com-le-ssl.conf:
SSLCertificateFile: file ‘/etc/letsencrypt/live/yarnedanddangerousco.com/fullchain.pem’ does not exist or is empty
That link points to /etc/letsencrypt/archive/yarnedanddangerousco.com/fullchain2.pem
owned by root 644
I looked at the pen using openssl x509 -text -noout -in
it is there and the domains are correct.
At this point I assume Apache thinks the pem is not good so it is using the one it generated which is not trusted so my browser will not view the site. Apache does not say the file is corrupt, it thinks it is empty or missing given it exists I think it believes it is empty yet openssl has no problem with it.
This is the first problem I’ve had with certbot so I don’t really no where to go from here. How do I recover? By the way the https://www.ssllabs.com/ssltest/analyze.html?d=www.yarnedanddangerousco.com test get a green A and contains the correct domains?
My domain is:
yarnedanddangerousco.com
I ran this command:
https -S
It produced this output:
AH00526: Syntax error on line 10 of /etc/httpd/sites-available/yarnedanddangerousco.com-le-ssl.conf:
SSLCertificateFile: file ‘/etc/letsencrypt/live/yarnedanddangerousco.com/fullchain.pem’ does not exist or is empty
My web server is (include version):
The operating system my web server runs on is (include version):
Centos 8 Server version: Apache/2.4.37 (centos)
Server built: Jun 8 2020 20:14:33
My hosting provider, if applicable, is:
Digitalocean
I can login to a root shell on my machine (yes or no, or I don’t know):
ssh use sudo
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
certbot 1.5.0