0

我正在使用traefik 1.4.0-rc3,我想设置让我们加密以在我的 traefik 反向代理上获取 SSL。

错误是

time="2017-10-01T18:02:02+02:00" level=error msg="map[www.site.com:Error presenting token: Cloudflare API Error 
     Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header site.com:Error presenting token: Cloudflare API Error 
     Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header]" 
time="2017-10-01T18:02:02+02:00" level=error msg="Error getting ACME certificate for domain [site.com www.site.com]: Cannot obtain certificates map[site.com:Error presenting token: Cloudflare API Error 
     Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header www.site.com:Error presenting token: Cloudflare API Error 
     Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header]+v"

我在 Windows 上的 Windows 容器内使用 Traefik。

我的 traefik.toml 看起来像这样:

traefikLogsFile = "/logs/traefik.log"
debug = true

[file]
directory = "/etc/sites/"
watch = true

[web]
address = ":8080"

defaultEntryPoints = ["http", "https"]
[entryPoints]
  [entryPoints.http]
  address = ":80"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[acme]
email = "my@email.com"
storage = "C:/ssl/lets-encrypt.json"
entryPoint = "https"
dnsProvider = "cloudflare"
acmeLogging = true
caServer = "https://acme-staging.api.letsencrypt.org/directory"
[[acme.domains]]
  main = "site.com"
  sans = ["www.site.com"]

我在这样的容器中运行 traefik:

docker run -d -e CLOUDFLARE_EMAIL=my@email.com -e CLOUDFLARE_API_KEY=v1.0-...abc -p 80:80 -p 8080:8080 -p 443:443 -v... traefik

我已验证我正在使用 Origin CA 密钥

你能帮忙吗?

4

1 回答 1

1

您应该改用全局 API 密钥,因为不支持原始 CA 密钥。

来源: https ://github.com/containous/traefik/pull/2558

于 2018-06-05T09:02:24.757 回答