VPS侦探论坛

 找回密码
 注册
查看: 560|回复: 0

ssl证书添加失败

[复制链接]
发表于 2024-4-23 15:45:46 | 显示全部楼层 |阅读模式


使用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

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-21 22:55 , Processed in 0.025328 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表