From f2d5261805c3e83520a77424ee262f08a422cfac Mon Sep 17 00:00:00 2001 From: XN Date: Wed, 31 May 2023 10:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E6=9D=A5=E8=A7=A3=E5=86=B3DNS=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=A8=A1=E5=BC=8F=E6=97=B6curl=20timed=20out=E7=9A=84?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 说明.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/说明.md b/说明.md index 64bfde8..51169a0 100644 --- a/说明.md +++ b/说明.md @@ -231,7 +231,24 @@ acme.sh --issue ..... --debug 2 请参考: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh +在DNS验证模式下如果debug中出现诸如"timed out"等字样可能是因为GFW拦截了相应请求,需要添加http(s) proxy环境变量。(请按照自己实际设定修改) +`export http_proxy="socks5h://localhost:1081" && export https_proxy="socks5h://localhost:1081" ` +如果是使用docker则完整示例配置如下: + +` +docker run --rm -it \ + -v "/etc/acme":/acme.sh \ + -e "CF_Token=[填入自己的信息]" \ + -e "CF_Account_ID=[填入自己的信息]" \ + -e "CF_Zone_ID=[填入自己的信息]" \ + -e http_proxy="socks5h://[代理A]:1234" \ + -e https_proxy="socks5h://[代理A]:1234" \ + --network container:[代理A]\ + neilpang/acme.sh \ + --issue -d example.com --dns dns_cf --debug +` +上述例子中使用cloudflare的DNS来签发证书,并通过把acme.sh链接到容器[代理A],来转发curl请求(请按照自己实际设定修改) 最后, 本文并非完全的使用说明, 还有很多高级的功能, 更高级的用法请参看其他 wiki 页面.