【问题标题】:Setting up Traefik to require client side certificates with Let's Encrypt using CLI only设置 Traefik 以仅使用 CLI 使用 Let's Encrypt 要求客户端证书
【发布时间】:2019-07-06 15:48:31
【问题描述】:

我正在尝试设置 Traefik 来做 SSL 客户端证书,就像我过去用 Apache 做的那样。但我似乎无法让它正常工作。我也在用Docker,这里是命令参数

    command:
      - --defaultEntryPoints=http,https
      - --insecureSkipVerify
      - "--entryPoints=Name:http Address::80 Compress:true Redirect.entryPoint:https"
      # This one works with no authentication
      - "--entryPoints=Name:https Address::443 Compress:true TLS"

      # These don't seem to do anything
      - "--entryPoints=Name:https Address::443 Compress:true TLS CA.Optional:false CA:/run/secrets/CA"
      - --ping
      - --docker
      - --docker.endpoint=tcp://daemon:2375
      - --docker.exposedByDefault=false
      - --docker.swarmMode
      - --docker.watch
      - --acme
      - --acme.email=REDACTED@trajano.net
      - --acme.onhostrule
      - --acme.entrypoint=https
      - --acme.httpchallenge
      - --acme.httpchallenge.entrypoint=http
      - --zookeeper.endpoint=zookeeper:2181
      - --zookeeper.prefix=traefik
      - --acme.storage=traefik/acme/acme.json

【问题讨论】:

    标签: traefik ssl-client-authentication


    【解决方案1】:

    毕竟是CA.OptionalCA。我使用的是自动选择证书的 Firefox,而当我使用 Chrome 时,它​​正在使用缓存的内容。所以当我清除浏览器缓存时,事情就开始工作了。

    请注意,此方法仅验证客户端证书是否由 CA 签名,但不会执行任何额外检查,例如正在使用的主题。据我了解,这是目前 Traefik 1.7 的限制。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-14
      • 2018-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多