I have Apache 2.4.20 running on Ubuntu 14.04. I’ve already installed the certificates and its working fine.
The problem is that when I use apachectl configtest an error would appear:
SSLCertificateFile: file '/etc/letsencrypt/live/www.example.com/fullchain.pem' not exist or is empty.
Fact: The file there at that directory.
Fact 2: I installed letsencrypt using
./letsencrypt-auto --apache -d www.example.com
And when I reload or restart Apache it would run with no errors and the website is accessible using the letsencrypt certificate.
Any ideas on what’s going on and do I fix this?
EDIT: How I installed this… Maybe I did something here?
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt cd /opt/letsencrypt ./letsencrypt-auto --apache -d www.example.com
EDIT_2 Addition to my setup since this is really getting confusing.
I have 3 certificates installed from letsencrypt. All on different domains and were generated individually.
The problem I believe is not on the particular certificate but somewhere on the setup? Please help me out… Because when I removed www.example.com from the enabled websites and did another apachectl configtest the same file does not exist or is empty appears but this time for the other domains (like site2.example.com).
/etc/letsencrypt/live has 0700 permission and the rest inside it has 0755. I’ve tries changing 0700 to 0755 to no avail. Owner and Group is root:root.