ssl - Traefik:无法获取域的 ACME 证书
问题描述
我正在使用 traefik 在我的 NAS 上提供一些服务,并使用让我们加密的 https。现在我注意到我的 nextcloud 安装的 tls 证书昨天晚上过期了。Traefik 有这样的日志:
time="2018-08-31T22:43:08Z" level=error msg="Error getting ACME client: ACME client still not built, retrying in 6.83135832s"
time="2018-08-31T22:43:15Z" level=error msg="Error getting ACME client: ACME client still not built, retrying in 12.680203952s"
time="2018-08-31T22:43:28Z" level=error msg="Error getting ACME client: ACME client still not built"
我更新到 v1.7 但现在错误不同了:
time="2018-09-01T07:42:44Z" level=error msg="Unable to obtain ACME certificate for domains \"my.domain\" detected thanks to rule \"Host:cloud.dnas.one\" : cannot get ACME client ACME challenge not specified, please select TLS or HTTP or DNS Challenge"
此消息针对每个域发布,包括内部域和外部域。找不到有关此问题的太多信息。
Traefik 配置:
defaultEntryPoints = ["http", "https"]
idleTimeout = 0
dialTimeout = 0
logLevel = "WARN"
[entryPoints]
[entryPoints.http]
address = ":80"
#entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
# Lets Encrypt via ACME
[acme]
email = "my@email.de"
storage = "acme.json"
entryPoint = "https"
onDemand = false
OnHostRule = true
caServer = "https://acme-v02.api.letsencrypt.org/directory"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "nas.one"
watch = true
解决方案
推荐阅读
- codeigniter - 未使用 codeigniter 将数据插入数据库
- flutter - 为什么在 Flutter 与 GraphQL 连接中取消定义位置?
- modbus - 对 modbus 触摸面板进行编程以打开 modbus 继电器板中的继电器
- c - 我刚开始编码,我得到这个错误 undefined reference to winmain@16 in vscode
- ruby-on-rails - 安装 gem bson_ext 版本 1.5.1 时出错
- python - pysmb 从 linux 到 Windows,无法连接到共享设备
- intellij-idea - Intellij 未在 UI 中显示 `git diff` 和 `git diff --staged` 更改
- r - 将数据框列表的列转换为因子
- python - 我如何在 python 3.8 中重复一段代码
- angular - 错误:-“无法访问 SonarQube 服务器 [http://localhost:9000]”在本地对 y 代码运行 sonarqube-scanner 时