I'm running SSL Certificates from Let's Encrypt. I've got them installed on my Ubuntu machine running Apache. The setup works fine and I can launch the website, see the green padlock and even got an A+ on SSL Labs.
The problem is that when I do apachectl configtest the server would return a file not found error:
SSLCertificateFile: file '/etc/letsencrypt/live/www.example.com/fullchain.pem' not exist or is empty.
sudo service apache2 restart works just fine.
I got this question running at Let's Encrypt Community but the issue hasn't been resolved yet.
sudo cat /etc/letsencrypt/live/www.example.com/fullchain.pem works, returns valid certificate details.
sudo x509 -text -noout -in /etc/letsencrypt/live/www.example.com/fullchain.pem
does not work and returns the error below:
Error opening Certificate /etc/letsencrypt/live/www.example.com/fullchain.pem 139774254929568:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/letsencrypt/live/www.example.com/fullchain.pem.','r') 139774254929568:error:2007402:BIO routines:FILE_CTRL:system lib:bss_file.c:400: ubable to load certificate
Any ideas on why I'm getting errors on apachectl configtest and openssl?