hi, i hv install Ubuntu 20.04 LTS on a vps and login as root(root@SHADOW:~#) by default. I use the command below to install & generate a certificate:
Code:
sudo apt install certbot python3-certbot-apache
sudo certbot --apache
but when i point my Shadowsocks to the path, it will give errors file cant be open. i hv confirm(by using ls), that the pem file is in there, and tried the full path below-
/etc/letsencrypt/archive/mydomain/fullchain1.pem
/etc/letsencrypt/live/mydomain/fullchain.pem
so jus to be sure its bcoz 'not authorize' issue, i copy the file into root, and it will give the same error. then i create a new folder and copy the file over to '/var/pp/fullchain1.pem' and it starts working. pls advice on how to fix this as this 'hack' is not proper way to run a program, especially when its updating the certificate
here is the rights of the folder/file:
Code:
/etc/letsencrypt/archive/mydomain/fullchain1.pem:
drwxr-xr-x 96 root root 4096 Aug 7 20:32 etc
drwxr-xr-x 9 root root 4096 Aug 7 10:10 letsencrypt
drwx------ 3 root root 4096 Aug 6 16:13 archive
drwxr-xr-x 2 root root 4096 Aug 6 16:13 mydomain
-rw-r--r-- 1 root root 3542 Aug 6 16:13 fullchain1.pem
Code:
/etc/letsencrypt/live/mydomain/fullchain.pem:
drwxr-xr-x 96 root root 4096 Aug 7 20:32 etc
drwxr-xr-x 9 root root 4096 Aug 7 10:10 letsencrypt
drwx------ 3 root root 4096 Aug 6 16:13 live
drwxr-xr-x 2 root root 4096 Aug 6 16:13 mydomain
lrwxrwxrwx 1 root root 38 Aug 6 16:13 fullchain.pem -> ../../archive/mudomain/fullchain1.pem
i hv chmod 755 on the fullchain.pem earlier. i suspect its bcoz the program is not running as root and has no rights to access them, but i hv no idea how to check....
here is the command i use to install SS - sudo apt install shadowsocks-libev
thank you,