📅  最后修改于: 2022-03-11 14:51:10.931000             🧑  作者: Mango
# add repository
sudo apt-add-repository -r ppa:certbot/certbot
# update system
sudo apt update
# install certbot
sudo apt install certbot python3-certbot-nginx
# generate and create SSL for server
certbot --nginx -d example.com -d www.example.com