[Mon May 20 14:31:39 CST 2019] Creating domain key [Mon May 20 14:31:39 CST 2019] The domain key is here: /root/.acme.sh/*.test.com/*.test.com.key [Mon May 20 14:31:39 CST 2019] Single domain='*.test.com' [Mon May 20 14:31:39 CST 2019] Getting domain auth token for each domain [Mon May 20 14:31:41 CST 2019] Getting webroot for domain='*.test.com' [Mon May 20 14:31:41 CST 2019] Add the following TXT record: [Mon May 20 14:31:41 CST 2019] Domain: '_acme-challenge.test.com' [Mon May 20 14:31:41 CST 2019] TXT value: '-CtUNqZ72M8E825dLzc4YRQyshby65Ut5jeGYZcMA' [Mon May 20 14:31:41 CST 2019] Please be aware that you prepend _acme-challenge. before your domain [Mon May 20 14:31:41 CST 2019] so the resulting subdomain will be: _acme-challenge.test.com [Mon May 20 14:31:41 CST 2019] Please add the TXT records to the domains, and re-run with --renew. [Mon May 20 14:31:41 CST 2019] Please check log file for more details: /root/.acme.sh/acme.sh.log
PS: 解析对应的 TXT 记录,等 TXT 记录生效后,使用如下命令验证域名证书
颁发证书
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
./acme.sh --renew -d *.test.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please [Mon May 20 14:39:54 CST 2019] Renew: '*.test.com' [Mon May 20 14:39:54 CST 2019] Single domain='*.test.com' [Mon May 20 14:39:54 CST 2019] Getting domain auth token for each domain [Mon May 20 14:39:54 CST 2019] Verifying: *.test.com [Mon May 20 14:39:58 CST 2019] Success [Mon May 20 14:39:58 CST 2019] Verify finished, start to sign. [Mon May 20 14:39:58 CST 2019] Lets finalize the order, Le_OrderFinalize: https://acme-v02.api.letsencrypt.org/acme/finalize/57434696/460828648 [Mon May 20 14:40:00 CST 2019] Download cert, Le_LinkCert: https://acme-v02.api.letsencrypt.org/acme/cert/0394d4c6ac1022960d1b4873927b1749d551 [Mon May 20 14:40:00 CST 2019] Cert success.
[Mon May 20 14:40:00 CST 2019] Your cert is in /root/.acme.sh/*.test.com/*.test.com.cer [Mon May 20 14:40:00 CST 2019] Your cert key is in /root/.acme.sh/*.test.com/*.test.com.key [Mon May 20 14:40:00 CST 2019] The intermediate CA cert is in /root/.acme.sh/*.test.com/ca.cer [Mon May 20 14:40:00 CST 2019] And the full chain certs is there: /root/.acme.sh/*.test.com/fullchain.cer [Mon May 20 14:40:00 CST 2019] It seems that you are using dns manual mode. please take care: The dns manual mode can not renew automatically, you must issue it again manually. You'd better use the other modes instead. [Mon May 20 14:40:00 CST 2019] Call hook error.
PS: 这里使用的是 --renew
这里会生成.cer密钥
1 2 3 4 5 6
ll \*.test.com/ total 28 -rw-r--r-- 1 root root 1648 May 20 14:40 ca.cer -rw-r--r-- 1 root root 3551 May 20 14:40 fullchain.cer -rw-r--r-- 1 root root 1903 May 20 14:40 *.test.com.cer -rw-r--r-- 1 root root 1675 May 20 14:31 *.test.com.key