0

手动DNS验证方式申请证书

al0mosxsp
2023-3-29 278

1、执行手动申请的命令
acme.sh --issue --dns -d 域名

2、执行上述操作后会有如下提示
It seems that you are using dns manual mode.
Read this link first: https://github.com/acmesh-official/acme.sh/wiki/dns-manual-mode

3、打开它提示的链接,按照提示执行命令
acme.sh --issue --dns -d 域名 --yes-I-know-dns-manual-mode-enough-go-ahead-please

4、手动添加 txt 类型的 DNS 解析
执行完上面步骤后,会让你在你的域名提供商那里添加一条执行的 txt 类型的 DNS 解析
按照提示操作即可

5、DNS解析,手动添加完成后,执行验证操作
acme.sh --renew --dns -d 域名 --yes-I-know-dns-manual-mode-enough-go-ahead-please

6、安装证书
acme.sh --installcert -d 域名 --fullchain-file /root/cert.pem --key-file /root/key.pem

【注意】上述手动 DNS 验证方式不支持SSL证书到期自动续签,每次证书到期后都要用以上步骤重新申请。

最新回复 (0)

    暂无评论

请先登录后发表评论!

返回