- 积分
- 7
- 威望
-
- 金钱
-
- 注册时间
- 2017-10-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
使用cloudflare的Global API Key安装Let’s Encrypt 证书失败。好像是不能写入txt记录
主要错误:Error add txt for domain:_acme-challenge
步骤如下:
第一步输入
export CF_Key="846d3bb8b8a30a3f4b7909ef84ad8b2317a74"
export CF_Email="enquiry@yonyou.com.hk"
第二部输入
lnmp dnsssl cf
然后根据提示安装
部分错误日志
Tue Apr 23 14:45:55 CST 2024] _d_alias
[Tue Apr 23 14:45:55 CST 2024] txtdomain='_acme-challenge.boardgamecn.com'
[Tue Apr 23 14:45:55 CST 2024] txt='9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk'
[Tue Apr 23 14:45:55 CST 2024] d_api='/usr/local/acme.sh/dnsapi/dns_cf.sh'
[Tue Apr 23 14:45:55 CST 2024] Found domain api file: /usr/local/acme.sh/dnsapi/dns_cf.sh
[Tue Apr 23 14:45:55 CST 2024] Adding txt value: 9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk for domain: _acme-challenge.boardgamecn.com
[Tue Apr 23 14:45:55 CST 2024] First detect the root zone
[Tue Apr 23 14:45:55 CST 2024] h='_acme-challenge.boardgamecn.com'
[Tue Apr 23 14:45:55 CST 2024] zones?name=_acme-challenge.boardgamecn.com
[Tue Apr 23 14:45:55 CST 2024] GET
[Tue Apr 23 14:45:55 CST 2024] url='https://api.cloudflare.com/client/v4/zones?name=_acme-challenge.boardgamecn.com'
[Tue Apr 23 14:45:55 CST 2024] timeout=
[Tue Apr 23 14:45:55 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:45:56 CST 2024] ret='0'
[Tue Apr 23 14:45:56 CST 2024] h='boardgamecn.com'
[Tue Apr 23 14:45:56 CST 2024] zones?name=boardgamecn.com
[Tue Apr 23 14:45:56 CST 2024] GET
[Tue Apr 23 14:45:56 CST 2024] url='https://api.cloudflare.com/client/v4/zones?name=boardgamecn.com'
[Tue Apr 23 14:45:56 CST 2024] timeout=
[Tue Apr 23 14:45:56 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:45:57 CST 2024] ret='0'
[Tue Apr 23 14:45:57 CST 2024] _domain_id='366033bfa59636ab68276a9fc3e94d7a'
[Tue Apr 23 14:45:57 CST 2024] _sub_domain='_acme-challenge'
[Tue Apr 23 14:45:57 CST 2024] _domain='boardgamecn.com'
[Tue Apr 23 14:45:57 CST 2024] Getting txt records
[Tue Apr 23 14:45:57 CST 2024] zones/366033bfa59636ab68276a9fc3e94d7a/dns_records?type=TXT&name=_acme-challenge.boardgamecn.com
[Tue Apr 23 14:45:57 CST 2024] GET
[Tue Apr 23 14:45:57 CST 2024] url='https://api.cloudflare.com/client/v4/zones/366033bfa59636ab68276a9fc3e94d7a/dns_records?type=TXT&name=_acme-challenge.boardgamecn.com'
[Tue Apr 23 14:45:57 CST 2024] timeout=
[Tue Apr 23 14:45:57 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:45:58 CST 2024] ret='0'
[Tue Apr 23 14:45:58 CST 2024] Adding record
[Tue Apr 23 14:45:58 CST 2024] zones/366033bfa59636ab68276a9fc3e94d7a/dns_records
[Tue Apr 23 14:45:58 CST 2024] data='{"type":"TXT","name":"_acme-challenge.boardgamecn.com","content":"9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk","ttl":120}'
[Tue Apr 23 14:45:58 CST 2024] POST
[Tue Apr 23 14:45:58 CST 2024] _post_url='https://api.cloudflare.com/client/v4/zones/366033bfa59636ab68276a9fc3e94d7a/dns_records'
[Tue Apr 23 14:45:58 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:45:58 CST 2024] _ret='0'
[Tue Apr 23 14:45:58 CST 2024] Add txt record error.
[Tue Apr 23 14:45:58 CST 2024] Error add txt for domain:_acme-challenge.boardgamecn.com
[Tue Apr 23 14:45:58 CST 2024] _on_issue_err
[Tue Apr 23 14:45:58 CST 2024] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
[Tue Apr 23 14:45:58 CST 2024] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
[Tue Apr 23 14:45:58 CST 2024] payload='{}'
[Tue Apr 23 14:45:58 CST 2024] POST
[Tue Apr 23 14:45:58 CST 2024] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
[Tue Apr 23 14:45:58 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:45:59 CST 2024] _ret='0'
[Tue Apr 23 14:45:59 CST 2024] code='200'
[Tue Apr 23 14:45:59 CST 2024] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
[Tue Apr 23 14:45:59 CST 2024] payload='{}'
[Tue Apr 23 14:45:59 CST 2024] POST
[Tue Apr 23 14:45:59 CST 2024] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
[Tue Apr 23 14:45:59 CST 2024] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header -L '
[Tue Apr 23 14:46:00 CST 2024] _ret='0'
[Tue Apr 23 14:46:00 CST 2024] code='400'
[Tue Apr 23 14:46:00 CST 2024] pid
[Tue Apr 23 14:46:00 CST 2024] No need to restore nginx, skip.
[Tue Apr 23 14:46:00 CST 2024] _clearupdns
[Tue Apr 23 14:46:00 CST 2024] dns_entries='boardgamecn.com,_acme-challenge.boardgamecn.com,,dns_cf,9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk,/usr/local/acme.sh/dnsapi/dns_cf.sh
|
|