joephon / blog

极简博客
3 stars 2 forks source link

How to deal with Certbot(letsencrypted) #2

Open joephon opened 4 years ago

joephon commented 4 years ago

OS

Ubuntu 16

Dependencies

Step 1 Add Certbot PPA

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

Step 2 Install Certbot

sudo apt-get install certbot python-certbot-nginx

Step 3 get and install your certificates

sudo certbot --nginx

Step 4 Test automatic renewal

sudo certbot renew --dry-run

Reference

这篇文章价值一块钱