本地环境获取https证书
下载acme.sh
1 | git clone https://gitee.com/neilpang/acme.sh.git |
获取cloudflare token

创建证书
1 | cd acme.sh |
安装证书
1 | 创建证书存放地址,需要有地址权限,不能使用sudo |
更新证书
1 | acme.sh --cron --home ~/.acme.sh |
使用证书
1 | nginx修改监听: |
1 | git clone https://gitee.com/neilpang/acme.sh.git |

1 | cd acme.sh |
1 | 创建证书存放地址,需要有地址权限,不能使用sudo |
1 | acme.sh --cron --home ~/.acme.sh |
1 | nginx修改监听: |