使用 lego生成 Let's Encrypt 证书
1. 工具
2. 使用
命令生成新的
请求重新生成lego --email="foo@bar.com" --domains="example.com" run
lego --email="foo@bar.com" --domains="example.com" renew按照时间生成证书
lego --email="foo@bar.com" --domains="example.com" renew --days 30
3. 参考例子
lego --email="foo@bar.com" --domains="yunmarket.info" run

数据文件(隐藏文件夹 当前目录 .lego)

4. nginx 配置
5. 访问效果

6. 问题
30天过期时间,可以添加任务调度进行更新获取,还有一个问题是默认工具使用的
是http 80 端口,一个可选的配置是http :port