初见

nginx + CentOS 6 使用certbot 安装htt

2018-04-22  本文已影响26人  朩浀樹佺

1、进入网站https://certbot.eff.org
2、选择

image.png
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
上一篇 下一篇

猜你喜欢

热点阅读