系统:Debian
使用certbot就可以了,基本不会遇到什么问题。
不过由于我之前是使用宝塔来安装nginx的,nginx.conf并不位于/etc/nginx,
使用certbot --nginx --nginx-server-root /path/to/nginx/conf 手动指定。