title: Traefik docker DNS challenge with Namecheap not working
body: <p>Traefik.toml</p>
  
  <pre><code>defaultEntryPoints = ["http","https"]
  
  [web]
  address = ":8080"
  
  [entryPoints]
    [entryPoints.http]
    address = ":80"
    [entryPoints.http.auth.forward]
    address = "http://forward-oauth:4181"
      [entryPoints.http.redirect]
        entryPoint = "https"
    [entryPoints.https]
    address = ":443"
      [entryPoints.https.tls]
  [docker]
  endpoint="unix:///var/run/docker.sock"
  domain="docker.localhost"
  watch=true
  exposedByDefault = false
  
  [acme]
  email = "tim@tim.com"
  storage = "acme.json"
  caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
  entryPoint = "https"
  [acme.dnsChallenge]
  provider = "namecheap"
  delayBeforeCheck = 0
  
  [[acme.domains]]
    main = "*.tim.com"
    sans = ["timelfelt.com"]
  
  [file]
  
  [backends]
    [backends.backend1]
      [backends.backend1.servers.server1]
         url = "http://192.168.192.116"
  
  [frontends]
    [frontends.frontend1]
        backend = "backend1"
        passHostHeader = true
        [frontends.frontend1.routes.adfs]
            rule = "Host:adfs.blah.com"
  </code></pre>
  
  <p>I get an error message in the Traefik docker log:</p>
  
  <p>time="2018-11-10T06:29:28Z" level=error msg="Unable to obtain ACME certificate for domains \"<em>.tim.com,tim.com\" : unable to generate a wildcard certificate in ACME provider for domain \"</em>.tim.com,tim.com\" : ACME needs a DNSChallenge"</p>
  
  <p>Both the namecheap API and username are set on the host. 80 and 443 are available as well.</p>