- 安装
sudo apt install -y certbot python3-certbot-nginx # python3-certbot-apache - 配合nginx使用
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com - 只需要生成证书,自己配置nginx
certbot certonly --nginx - 过程中会提示选择是否自动配置 HTTPS,自动续期检查,Certbot 会自动添加 systemd 定时任务。
版权归属:
JW
许可协议:
本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
评论区