acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.62k stars 4.99k forks source link

用这个代码acme.sh --issue -d olanfei.buzz -k ec-256 --webroot /var/www/html --debug申请证书时出现以下错误,请大神指点下应如何解决 #4590

Open tjuy opened 1 year ago

tjuy commented 1 year ago

olanfei.buzz:Verify error:104.168.242.73: Fetching http://olanfei.buzz/.well-known/acme-challenge/8iOmrDKOA2oFefJsh-1GHfw0C1RynrPiJ9NIWuUdpPw: Connection refused [Sat Apr 8 02:15:09 UTC 2023] Debug: get token url. [Sat Apr 8 02:15:09 UTC 2023] GET [Sat Apr 8 02:15:09 UTC 2023] url='http://olanfei.buzz/.well-known/acme-challenge/8iOmrDKOA2oFefJsh-1GHfw0C1RynrPiJ9NIWuUdpPw' [Sat Apr 8 02:15:09 UTC 2023] timeout=1 [Sat Apr 8 02:15:09 UTC 2023] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g --connect-timeout 1' [Sat Apr 8 02:15:09 UTC 2023] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7 [Sat Apr 8 02:15:09 UTC 2023] ret='7' [Sat Apr 8 02:15:09 UTC 2023] Debugging, skip removing: /var/www/html/.well-known [Sat Apr 8 02:15:09 UTC 2023] pid [Sat Apr 8 02:15:09 UTC 2023] No need to restore nginx, skip. [Sat Apr 8 02:15:09 UTC 2023] _clearupdns [Sat Apr 8 02:15:09 UTC 2023] dns_entries [Sat Apr 8 02:15:09 UTC 2023] skip dns. [Sat Apr 8 02:15:09 UTC 2023] _on_issue_err [Sat Apr 8 02:15:09 UTC 2023] Please check log file for more details: /root/.acme.sh/acme.sh.log [Sat Apr 8 02:15:09 UTC 2023] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/217610151547/bOdZqw' [Sat Apr 8 02:15:09 UTC 2023] payload='{}' [Sat Apr 8 02:15:09 UTC 2023] POST [Sat Apr 8 02:15:09 UTC 2023] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/217610151547/bOdZqw' [Sat Apr 8 02:15:09 UTC 2023] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g ' [Sat Apr 8 02:15:10 UTC 2023] _ret='0' [Sat Apr 8 02:15:10 UTC 2023] code='400' [Sat Apr 8 02:15:10 UTC 2023] socat doesn't exist. [Sat Apr 8 02:15:10 UTC 2023] Diagnosis versions:

github-actions[bot] commented 1 year ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

InnocenseYu commented 1 year ago

olanfei.buzz:Verify error:104.168.242.73: Fetching http://olanfei.buzz/.well-known/acme-challenge/8iOmrDKOA2oFefJsh-1GHfw0C1RynrPiJ9NIWuUdpPw: Connection refused [Sat Apr 8 02:15:09 UTC 2023] Debug: get token url. [Sat Apr 8 02:15:09 UTC 2023] GET [Sat Apr 8 02:15:09 UTC 2023] url='http://olanfei.buzz/.well-known/acme-challenge/8iOmrDKOA2oFefJsh-1GHfw0C1RynrPiJ9NIWuUdpPw' [Sat Apr 8 02:15:09 UTC 2023] timeout=1 [Sat Apr 8 02:15:09 UTC 2023] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g --connect-timeout 1' [Sat Apr 8 02:15:09 UTC 2023] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 7 [Sat Apr 8 02:15:09 UTC 2023] ret='7' [Sat Apr 8 02:15:09 UTC 2023] Debugging, skip removing: /var/www/html/.well-known [Sat Apr 8 02:15:09 UTC 2023] pid [Sat Apr 8 02:15:09 UTC 2023] No need to restore nginx, skip. [Sat Apr 8 02:15:09 UTC 2023] _clearupdns [Sat Apr 8 02:15:09 UTC 2023] dns_entries [Sat Apr 8 02:15:09 UTC 2023] skip dns. [Sat Apr 8 02:15:09 UTC 2023] _on_issue_err [Sat Apr 8 02:15:09 UTC 2023] Please check log file for more details: /root/.acme.sh/acme.sh.log [Sat Apr 8 02:15:09 UTC 2023] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/217610151547/bOdZqw' [Sat Apr 8 02:15:09 UTC 2023] payload='{}' [Sat Apr 8 02:15:09 UTC 2023] POST [Sat Apr 8 02:15:09 UTC 2023] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/217610151547/bOdZqw' [Sat Apr 8 02:15:09 UTC 2023] _CURL='curl --silent --dump-header /root/.acme.sh/http.header -L -g ' [Sat Apr 8 02:15:10 UTC 2023] _ret='0' [Sat Apr 8 02:15:10 UTC 2023] code='400' [Sat Apr 8 02:15:10 UTC 2023] socat doesn't exist. [Sat Apr 8 02:15:10 UTC 2023] Diagnosis versions:

浏览器登录下域名,看看什么提示,再查看 /var/log/nginx/error.log 日志,如果是 权限问题的化,修改 vi /etc/nginx/nginx.conf 第一行的 user 参数值 www-data 为你的账户 权限即可

dagonli commented 1 year ago

解决了吗?遇到相同的问题