https://certbot.eff.org/lets-encrypt/centosrhel8-nginx

按照官方文档执行sudo /usr/local/bin/certbot-auto --nginx的时候会报错Nginx 配置找不到,需要手动指定 Nginx 配置文件目录

sudo /usr/local/bin/certbot-auto --nginx --nginx-server-root /usr/local/nginx/conf

更多详细文档:https://certbot.eff.org/docs/using.html#certbot-command-line-options