管理 https 证书:Certbot
今天在 github 看到一个 project 用 certbot 来管理证书,试用了下感觉还蛮简单的。主要有:
* 开始的时候提供一个简版 nginx, 安装完 certbot 会自动修改 nginx conf
* 自动生成 /etc/cron.d/certbot, 在 root 下面自动运行。
ps: Ubuntu Minimal 版本不带 cron, 所以要额外 sudo apt install cron
安装全过程:
1. Install nginx:
sudo apt update
sudo apt install -y nginx certbot python3-certbot-nginx
2. Put