Apache config. check reports ssl error

I’m on Apache 2.4, Amazon Linux2 with cerbot 0.31.0-2.el7 installed.

Everything appears to be running fine in terms of ssl, but I just did a check of my Apache configuration and it reported an SSL error:

AH00526: Syntax error on line 106 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/mydomain.com/fullchain.pem' does not exist or is empty

I checked and that .pem file does exist on the server, and when I opened the file I saw that it’s not empty. The first line is “-----BEGIN CERTIFICATE-----” followed by random characters and closing with “-----END CERTIFICATE-----”. There’s a second certificate entry below the first with the same exact format.

I’m not exactly clear what needs to be fixed here. Why is Apache throwing this error?


Sorry, my bad–I was not logged in as root when checking config. and forgot the “sudo”–so didn’t have permission to enter that directory.

Problem solved.


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