After successful installation in CentOS8, is it normal for httpd -M to show this error?
AH00526: Syntax error on line 13 of /etc/httpd/conf.d/mydomain.com-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/mydomain.com/fullchain.pem' does not exist or is empty
The conf file has these 3 lines inserted by certbot:
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
ls of the cert & key locations:
$ sudo ls -al /etc/letsencrypt/live/mydomain.com
total 4
drwxr-xr-x 2 root root 93 Feb 24 11:24 .
drwx------ 3 root root 40 Feb 21 13:47 ..
lrwxrwxrwx 1 root root 36 Feb 21 13:47 cert.pem -> ../../archive/mydomain.com/cert1.pem
lrwxrwxrwx 1 root root 37 Feb 21 13:47 chain.pem -> ../../archive/mydomain.com/chain1.pem
lrwxrwxrwx 1 root root 41 Feb 21 13:47 fullchain.pem -> ../../archive/mydomain.com/fullchain1.pem
lrwxrwxrwx 1 root root 39 Feb 21 13:47 privkey.pem -> ../../archive/mydomain.com/privkey1.pem
-rw-r--r-- 1 root root 692 Feb 21 13:47 README
$ sudo ls -al /etc/letsencrypt/archive/mydomain.com
total 16
drwxr-xr-x 2 root root 83 Feb 21 13:47 .
drwx------ 3 root root 26 Feb 21 13:47 ..
-rw-r--r-- 1 root root 1903 Feb 21 13:47 cert1.pem
-rw-r--r-- 1 root root 1647 Feb 21 13:47 chain1.pem
-rw-r--r-- 1 root root 3550 Feb 21 13:47 fullchain1.pem
-rw------- 1 root root 1704 Feb 21 13:47 privkey1.pem
Also, should apache have read permission to privkey1.pem?