Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nginx letsencrypt reovke with certbot
# auto letsencrypt revoke with certbot-nginx
#remove
sudo service nginx stop
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get remove certbot -y
#sudo rm -rf letsencrypt
sudo apt-get remove letsencrypt -y
sudo apt-get purge certbot -y
sudo apt-get purge letsencrypt -y
sudo apt-get purge letsencrypt -y
sudo apt-get autoremove -y
sudo service nginx start
#install
sudo apt-get update -y
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update -y
sudo apt-get install python-certbot-nginx -y
sudo certbot --nginx
sudo certbot --nginx certonly
sudo certbot renew
#sudo apt-get install certbot -y
#sudo pip install --upgrade pip
#git clone https://github.com/letsencrypt/letsencrypt
#cd letsencrypt
#sudo ./letsencrypt-auto --help
#dependency package install
#sudo ./letsencrypt-auto
#sudo nginx -t
#sudo systemctl restart nginx
#crontab
./certbot-auto renew --quiet --no-self-upgrade
0 19 1 1/3 * /bin/bash -l -c '/home/deployer/certbot-auto renew --quiet --no-self-upgrade'
* 1 * * 1 /etc/certbot-auto renew --quiet --quiet --no-self-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.