Renew LetsEncrypt certificate:
sudo certbot renew
Give NGINX permissions to LetsEncrypt files:
1 2 3 4 5 6 7 8 9 10 |
sudo chgrp nginx live/ sudo chown nginx live/ sudo chgrp nginx mysite.com/ sudo chown nginx mysite.com/ sudo chgrp -h nginx privkey.pem sudo chown -h nginx privkey.pem sudo chgrp -h nginx fullchain.pem sudo chown -h nginx fullchain.pem |
Stop custom built NGINX:
sudo /usr/local/nginx/sbin/nginx -s stop
Start custom built NGINX:
sudo /etc/init.d/nginx start
Leave a Reply