traefik: CloudFlare 6103: Invalid format for X-Auth-Key header

Do you want to request a feature or report a bug?

Reporting a bug

What did you do?

Ran traefik in a windows container and set cloudlfare to be the dnsProvider.

What did you expect to see?

I expected to get the ssl certificate.

What did you see instead?

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"

Output of traefik version: (What version of Traefik are you using?)

Version:      v1.4.0-rc3
Codename:     roquefort
Go version:   go1.9
Built:        2017-09-18_04:38:27PM
OS/Arch:      windows/amd64

What is your environment & configuration (arguments, toml, provider, platform, …)?

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"]

I run traefik in a container like this:

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

I have verified that I am using the Origin CA Key

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

Currently you can only use Global CA Key

@frenchviking Could you please verify if email used in env variable CLOUDFLARE_EMAIL is the same as the email of your Cloudflare account