linux - How can I set the permission of a .key file to be only accessed by nginx -
i have ssl certificate key in directory /etc/nginx/key
, how can set permissions allow nginx process access key file?
make nginx user own it, , set permissions owner so:
chown /etc/nginx/key nginxuser chmod 400 /etc/nginx/key
i chose 400 because no 1 should need write key. note root still able read , write this. also, replace nginxuser user runs nginx, don't know off top of head.
Comments
Post a Comment