【问题标题】:acme.sh script failing with Verify error: Invalid response from https://example.com/.well-known/acme-challenge/etc. Please add '--debug' or '--log'acme.sh 脚本因验证错误而失败:来自 https://example.com/.well-known/acme-challenge/etc 的响应无效。请添加“--debug”或“--log”
【发布时间】:2021-12-30 23:03:44
【问题描述】:

在尝试通过 acme.sh 脚本获取 Let's Encrypt 证书时,我有时会遇到此错误。

有时这是第一次尝试获取 Let's Encrypt 证书,有时它以前可以,但现在突然不起作用。

错误信息类似于:

domain.com:Verify error:Invalid response from https://example.com/.well-known/acme-challenge/1kSTnls6_vcku98gwLEUMQNnbl1cSY1pdBrPi7sJdos
Please add '--debug' or '--log' to check more details.
See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

添加--debug 选项,会显示一些类似于以下内容的日志条目:

Changing owner/group of .well-known to username:nobody
chown: changing ownership of /home/path/to/example.com: Operation not permitted

解决办法是什么?

【问题讨论】:

    标签: cpanel web-hosting acme.sh


    【解决方案1】:

    希望这将节省其他人在谷歌上搜索、仔细阅读文档或阅读已关闭的 GitHub 问题的时间。

    首先要检查:网站文件夹中是否有 .htaccess 文件?
    (“网站文件夹”是指实际网站文件的存储位置,比如/home/youruser/public_html/path_to_your_domain.com

    (请注意,.htaccess 等点文件在 CPANEL 文件管理器中默认隐藏,因此您可能需要使用 FTP 应用程序来检查 - 或启用在 CPANEL 文件管理器中显示隐藏文件(有右上角的设置按钮))

    如果是这样:

    a) 重命名 .htaccess 文件(改为 .xxxhtaccess 或等)

    b) 重新运行acme.sh 脚本

    c) 成功后,再次重命名.htaccess 文件

    一些参考资料:

    acme.sh GitHub Issues

    acme.sh Documentation

    【讨论】:

      猜你喜欢
      • 2019-01-04
      • 2021-01-03
      • 2018-11-09
      • 2017-06-07
      • 2019-04-05
      • 2020-08-30
      • 2021-07-25
      • 2019-08-22
      • 2017-08-10
      相关资源
      最近更新 更多