将release中编译好的文件下载下来,在命令行执行命令,获取证书
3个月的有效期。

E:\gowork\src\github.com\go-acme\lego>lego --email="504284@qq.com" --domains="zsj.itdos.net" --http run
2024/06/29 23:18:43 [INFO] [zsj.itdos.net] acme: Obtaining bundled SAN certificate
2024/06/29 23:18:44 [INFO] [zsj.itdos.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/370441884097
2024/06/29 23:18:44 [INFO] [zsj.itdos.net] acme: Could not find solver for: tls-alpn-01
2024/06/29 23:18:44 [INFO] [zsj.itdos.net] acme: use http-01 solver
2024/06/29 23:18:44 [INFO] [zsj.itdos.net] acme: Trying to solve HTTP-01
2024/06/29 23:18:45 [INFO] [zsj.itdos.net] Served key authentication
2024/06/29 23:18:46 [INFO] [zsj.itdos.net] Served key authentication
2024/06/29 23:18:46 [INFO] [zsj.itdos.net] Served key authentication
2024/06/29 23:18:46 [INFO] [zsj.itdos.net] Served key authentication
2024/06/29 23:18:46 [INFO] [zsj.itdos.net] Served key authentication
2024/06/29 23:18:50 [INFO] [zsj.itdos.net] The server validated our request
2024/06/29 23:18:50 [INFO] [zsj.itdos.net] acme: Validations succeeded; requesting certificates
2024/06/29 23:18:54 [INFO] [zsj.itdos.net] Server responded with a certificate.

执行上述命令,获得的证书在下面这个目录中:
github.com\go-acme\lego.lego\certificates
将证书放到cms目录下。

作者:秦晓川  创建时间:2024-06-29 23:28
最后编辑:秦晓川  更新时间:2024-11-22 18:38
上一篇:
下一篇: