1、进入网站https://certbot.eff.org
2、选择
3、如果网站上的步骤执行时,首先在nginx上配置
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /usr/share/nginx/html;
}
location = /.well-known/acme-challenge/ {
return 404;
}
4、按照步骤进行执行
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
$ sudo ./path/to/certbot-auto --nginx
$ sudo ./path/to/certbot-auto --nginx certonly
网友评论