qizhenkim 发表于 2024-4-23 15:45:46

ssl证书添加失败


使用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
txtdomain='_acme-challenge.boardgamecn.com'
txt='9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk'
d_api='/usr/local/acme.sh/dnsapi/dns_cf.sh'
Found domain api file: /usr/local/acme.sh/dnsapi/dns_cf.sh
Adding txt value: 9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk for domain:_acme-challenge.boardgamecn.com
First detect the root zone
h='_acme-challenge.boardgamecn.com'
zones?name=_acme-challenge.boardgamecn.com
GET
url='https://api.cloudflare.com/client/v4/zones?name=_acme-challenge.boardgamecn.com'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
ret='0'
h='boardgamecn.com'
zones?name=boardgamecn.com
GET
url='https://api.cloudflare.com/client/v4/zones?name=boardgamecn.com'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
ret='0'
_domain_id='366033bfa59636ab68276a9fc3e94d7a'
_sub_domain='_acme-challenge'
_domain='boardgamecn.com'
Getting txt records
zones/366033bfa59636ab68276a9fc3e94d7a/dns_records?type=TXT&name=_acme-challenge.boardgamecn.com
GET
url='https://api.cloudflare.com/client/v4/zones/366033bfa59636ab68276a9fc3e94d7a/dns_records?type=TXT&name=_acme-challenge.boardgamecn.com'
timeout=
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
ret='0'
Adding record
zones/366033bfa59636ab68276a9fc3e94d7a/dns_records
data='{"type":"TXT","name":"_acme-challenge.boardgamecn.com","content":"9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk","ttl":120}'
POST
_post_url='https://api.cloudflare.com/client/v4/zones/366033bfa59636ab68276a9fc3e94d7a/dns_records'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
_ret='0'
Add txt record error.
Error add txt for domain:_acme-challenge.boardgamecn.com
_on_issue_err
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
_ret='0'
code='200'
url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
payload='{}'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/341951315917/mVG-yg'
_CURL='curl --silent --dump-header /usr/local/acme.sh/http.header-L '
_ret='0'
code='400'
pid
No need to restore nginx, skip.
_clearupdns
dns_entries='boardgamecn.com,_acme-challenge.boardgamecn.com,,dns_cf,9rQ6XP6udM7Zxsof7_k7_72U4uoP-Pzcps1ua5HVbXk,/usr/local/acme.sh/dnsapi/dns_cf.sh

页: [1]
查看完整版本: ssl证书添加失败