AboAmmar
0
Q:

nginx letsencrypt

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root certbot -q renew --nginx
1
#Once you have installed CertBot and Lets Encyrypt, 
#and you have set up your server blocks, 
#you will be able to run the below script in your terminal
sudo certbot --nginx -d example.com -d www.example.com
1
sudo certbot renew
sudo service nginx restart
1

New to Communities?

Join the community