Invalid Cert on new server install

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:

apachectl -t -D DUMP_VHOSTS

It produced this output:

Syntax error on line 8 of /etc/httpd/conf/httpd-le-ssl.conf:
SSLCertificateFile: file ‘/etc/letsencrypt/live/’ does not exist or is empty

Also when I nano into this directory it shows I have a certificate:
My web server is (include version): Apache

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

My hosting provider, if applicable, is: OVH

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 0.40.1

Also, when forcing HTTPS my server switches over to the default apache install page. I have installed wordpress on my server and it only works when HTTPS is not active.

Any help would be so very much appreciated, have been researching and scratching my head over this for hours.

Installation seemed to go smooth, I originally had this server on Cloudflare and I removed it from cloudflare and switched over to a namecheap dns to see if Cloudflare was the issue, it was not.

Please show the output of:
certbot certificates
and also of:
ls -l /etc/letsencrypt/live/

1 Like

certbot certificates

-bash: certbot: command not found

sudo ls -l /etc/letsencrypt/live/

total 4
lrwxrwxrwx 1 root root 45 Nov 27 22:57 cert.pem -> …/…/archive/
lrwxrwxrwx 1 root root 46 Nov 27 22:57 chain.pem -> …/…/archive/
lrwxrwxrwx 1 root root 50 Nov 27 22:57 fullchain.pem -> …/…/archive/
lrwxrwxrwx 1 root root 48 Nov 27 22:57 privkey.pem -> …/…/archive/
-rw-r–r-- 1 root root 692 Nov 27 22:57 README

1 Like

The files look good.

But however you got that, get the certificates.



1 Like

Then please show:
certbot-auto certificates


1 Like

There seems to be an error in this file:

Please show the whole file.

1 Like

<VirtualHost *:443>


DocumentRoot /var/www/


ErrorLog /var/www/

CustomLog /var/www/ common

SSLCertificateFile /etc/letsencrypt/live/

SSLCertificateKeyFile /etc/letsencrypt/live/

Include /etc/letsencrypt/options-ssl-apache.conf

SSLCertificateChainFile /etc/letsencrypt/live/

there are if modules but they wont show up in the text there.


1 Like

im just going to try to do a new server install, thanks for the help anyways

edit: I got it working after a fresh server install on centos 7. Centos 6 gave me a ton of bugs but the new installation worked no problem


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