nginx下http免费转https的方法
在此记录一下在centos服务器nginx下http免费转https的方法,并会让证书在过期之前自动续期。
我使用的是acme方式,具体操作如下
1 安装 acme.sh
1
$ curl https://get.acme.sh | sh
2 申请签发 SSL 证书
1
2
3
4
# 在域名根目录下创建目录.well-known
$ mkdir .well-known
# 申请证书
$ acme.sh --issue -d wyschool.cn -w /usr/share/nginx/html/blog
3 安装 SSL 证书 并配置好 重启nginx的动作
1
2
3
...more >>