fix certbot installation

This commit is contained in:
openoms
2019-09-11 00:06:09 +01:00
parent 688beb5155
commit 58511930f1

View File

@@ -34,9 +34,12 @@ echo " give a 4-11 character password and press [ENTER] to save default options
echo "***" echo "***"
echo "" echo ""
wget https://dl.eff.org/certbot-auto # wget https://dl.eff.org/certbot-auto
chmod +x certbot-auto # chmod +x certbot-auto
sudo ./certbot-auto --nginx # sudo ./certbot-auto --nginx
sudo apt install -y certbot
# get SSL cert
sudo certbot certonly --authenticator standalone -d $YOUR_DOMAIN --pre-hook "service nginx stop" --post-hook "service nginx start"
# Your certificate and chain have been saved at: # Your certificate and chain have been saved at:
# /etc/letsencrypt/live/$YOUR_DOMAIN/fullchain.pem # /etc/letsencrypt/live/$YOUR_DOMAIN/fullchain.pem