I'm installing an nginx ssl proxy on my Fedora server.
I've created a cert and key pair under /etc/nginx. They look like this:
ls -l /etc/nginx/
total 84
...
-rw-r--r--. 1 root root 1346 Sep 20 12:11 demo.crt
-rw-r--r--. 1 root root 1679 Sep 20 12:11 demo.key
...
As root, I'm trying to start the nginx service:
systemctl start nginx.service
I get the following error:
nginx[30854]: nginx: [emerg]
SSL_CTX_use_certificate_chain_file("/etc/nginx/demo.crt") failed (SSL: error:0200100D:system library:fopen:Permission denied...e:system lib)
nginx[30854]: nginx: configuration file /etc/nginx/nginx.conf test failed
Is there something wrong with the permissions on these files?