1媳友、進(jìn)入網(wǎng)站https://certbot.eff.org
2芳撒、選擇
3、如果網(wǎng)站上的步驟執(zhí)行時(shí)牡肉,首先在nginx上配置
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /usr/share/nginx/html;
}
location = /.well-known/acme-challenge/ {
return 404;
}
4巢掺、按照步驟進(jìn)行執(zhí)行
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