申请letsencrypt安装泛域名
文章目录
域名申请工具 acme.sh
下载安装 acme.sh
1 | curl https://get.acme.sh | sh |
重启 terminal
1 | # 重启zsh |
生成安装泛域名证书
申请阿里云 Api_key
和 Ali_Secret
(可以按照 acme.sh 进行设置)
- 访问 https://ram.console.aliyun.com
- 左侧菜单点击 用户管理, 右上角点击创建新用户
- 填写用户名, 点击确定, 注意保存
AccessKeyId
和AccessKeySecret
- 添加授权
申请 证书
1 | export Ali_Key="上面申请的AccessKeyId" |
安装cert并重启nginx
1 | # *.demo.com 改成 *.your.domain |
nginx.conf
1 | server { |
文章若有纰漏请大家补充指正,谢谢~~