Question
Permissions issue after installing Lets Encrypt
After installing Lets Encrypt, on my LEMP server on CentOS 7, i am unable to restart nginx.
The issue seems to be that for some reason I don’t have anymore permissions to the subfolders of /etc/letsencrypt/. not even using sudo the command…
i get the error:
/etc/letsencrypt/live/: Permission denied
the permissions are set to:
drwxr-xr-x 8 root root 4096 feb 6 22:27 .
drwxr-xr-x. 86 root root 4096 mar 9 22:11 ..
drwx------ 3 root root 4096 feb 6 22:26 accounts
drwx------ 4 root root 4096 mar 9 22:12 archive
drwxr-xr-x 2 root root 4096 mar 9 22:12 csr
drwx------ 2 root root 4096 mar 9 22:12 keys
drwx------ 4 root root 4096 mar 9 22:12 live
drwxr-xr-x 2 root root 4096 mar 9 22:12 renewal
What should the permissions be? and how should i change them?
Thanks ahead!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Same issue here.i just followed digitalocean tutorials about this and used non-root to install nginx and letsencrypt.it’s done.
But nginx cannot access to “/etc/letsencrypt/live/domain.com/..” for privkey.pem and fullchain.pem.
So, i cannot use this free SSL thing in DO droplets..............
I hope DO will share the secure permissions for letsencrypt folders and let nginx reach there w/o problems.