HTTPS let's encrypt not working

Hello

I have an issue with the configuration of traefik v2. I can't use the let's encrypt certificate.

I have this configuration : (I have replace : email, domain name and basicauth for the copy, but I have the good name in my server)

version: '3'

services:
  reverse-proxy:
    image: traefik:v2.0.4
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--entrypoints.http.address=:80"
      - "--entrypoints.https.address=:443"
      - "--certificatesResolvers.defaut.acme.email=<email>@gmail.com"
      - "--certificatesResolvers.defaut.acme.storage=acme.json"
      - "--certificatesResolvers.defaut.acme.httpChallenge=true"
      - "--certificatesResolvers.defaut.acme.httpChallenge.entryPoint=http"
      - "--log.level=debug"
      - "--log.filePath=/var/log/traefik.log"
    ports:
      - "80:80"
      - "443:443"
    expose:
      - 8080
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik_traefik"
      - "traefik.http.routers.traefik.rule=Host(`traefik.<website.com>`)"
      - "traefik.http.routers.traefik.entrypoints=http"
      - "traefik.http.middlewares.traefik-auth.basicauth.users=<auth64>"
      - "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
      - "traefik.http.routers.traefik-secure.entrypoints=https"
      - "traefik.http.routers.traefik-secure.rule=Host(`traefik.<website.com>`)"
      - "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
      - "traefik.http.routers.traefik-secure.tls=true"
      - "traefik.http.routers.traefik-secure.tls.certresolver=default"
      - "traefik.http.routers.traefik-secure.service=api@internal"
      - "traefik.http.services.traefik.loadbalancer.server.port=8080"
    networks:
      - traefik
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

networks:
    traefik:
        driver: "bridge"

And I can see the log level=error msg="the router traefik-secure uses a non-existent resolver: default"

I think, I have a bad configuration, but I don't found the correct configuration. Anynone for helping me ?

Hi @typo, there is typo (:sweat_smile:) in your naming:

the certificate resolver is named defaut (without an l), while the router reference it as default (with a l ). French overriding english :wink: heh ?

Hi,
very funny :stuck_out_tongue: !
Stupid mistake.. And you're right : I'm French :stuck_out_tongue:

Thank you very much

1 Like