[GH-ISSUE #639] [Feature] 希望可以添加对lego的propagation-wait参数的支持 #428

Closed
opened 2026-03-03 01:03:16 +03:00 by kerem · 0 comments
Owner

Originally created by @tossp on GitHub (Apr 22, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/639

功能描述 / Description

cmd_lego_manual="${cmd_lego} --dns manual --pem"
cmd_lego_alidns="${cmd_lego} --dns.propagation-wait 10s --dns alidns --pem"
cmd_lego_dnspod="${cmd_lego} --dns.propagation-wait 10s --dns dnspod --pem"
cmd_lego_cf="${cmd_lego} --dns.propagation-wait 10s --dns cloudflare --pem"

dns.propagation-wait主要是可以让lego跳过对TXT记录的复查,其实也不需要复查,通过API添加dns记录后必定是成功的,等待十秒是等待一下边缘服务器刷新。

请求动机 / Motivation

当lego申请证书的时候,会去检查TXT记录不一致再去更新或者创建,这就会触发cloudflare的TXT记录的缓存,导致lego自己一直验证不通过最后申请证书失败,实际记录已经生效了。

其他 / Miscellaneous

lib 函数 github.com/go-acme/lego@950d4a0201/challenge/dns01/precheck.go (L47)

cmd 调用例子 github.com/go-acme/lego@950d4a0201/cmd/setup_challenges.go (L148)

贡献 / Contribution

  • 我乐意为此贡献代码! / I am interested in contributing to this feature!
Originally created by @tossp on GitHub (Apr 22, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/639 ### 功能描述 / Description ```bash cmd_lego_manual="${cmd_lego} --dns manual --pem" cmd_lego_alidns="${cmd_lego} --dns.propagation-wait 10s --dns alidns --pem" cmd_lego_dnspod="${cmd_lego} --dns.propagation-wait 10s --dns dnspod --pem" cmd_lego_cf="${cmd_lego} --dns.propagation-wait 10s --dns cloudflare --pem" ``` `dns.propagation-wait`主要是可以让lego跳过对`TXT`记录的复查,其实也不需要复查,通过API添加dns记录后必定是成功的,等待十秒是等待一下边缘服务器刷新。 ### 请求动机 / Motivation 当lego申请证书的时候,会去检查TXT记录不一致再去更新或者创建,这就会触发`cloudflare`的TXT记录的缓存,导致lego自己一直验证不通过最后申请证书失败,实际记录已经生效了。 ### 其他 / Miscellaneous lib 函数 https://github.com/go-acme/lego/blob/950d4a0201ebb54d07a4dab3cd12e3b8ceb82937/challenge/dns01/precheck.go#L47 cmd 调用例子 https://github.com/go-acme/lego/blob/950d4a0201ebb54d07a4dab3cd12e3b8ceb82937/cmd/setup_challenges.go#L148 ### 贡献 / Contribution - [x] 我乐意为此贡献代码! / I am interested in contributing to this feature!
kerem 2026-03-03 01:03:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#428
No description provided.