# HTTPS backend with Traefik's frontend Certificate

**URL:** <https://community.traefik.io/t/https-backend-with-traefiks-frontend-certificate/14028>\
**Category:** Traefik v2\
**Tags:** tcp, docker\
**Created:** [April 4, 2022, 12:09pm UTC](https://community.traefik.io/t/https-backend-with-traefiks-frontend-certificate/14028 "2022-04-04T12:09:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomba](https://avatars.discourse-cdn.com/v4/letter/z/dc4da7/32.png) [@zoomba](https://community.traefik.io/u/zoomba)\
**Post date:** [April 4, 2022, 12:09pm UTC](https://community.traefik.io/t/https-backend-with-traefiks-frontend-certificate/14028/1 "2022-04-04T12:09:32Z")

</div>

Hello,

I'm still trying to accomplish what I set out to do, as described in this thread:

> [@Browser -\> (https)traefik -\> (https)service?](https://community.traefik.io/t/browser-https-traefik-https-service/13313):
>
> Hi, I'm trying to setup traefik to proxy requests to a ssl enabled server, but I cannot seem to get it to work. The backend server must have ssl enabled. If passthrough: true is set in traefik.yml, then the browser just gets the self signed cert from the backend service, although the desired outcome is that traefik's self signed cert should be presented. Else if passthrough is commented, this is the output from the browser: Network Protocol Error An error occurred during a connection to su…

Unfortunately the issue still persists, traefik can talk to the backend via HTTPS, only with the passthrough option, which leads my browser to get the insecure HTTPS certificate of the backend service, instead of traefik's frontend certificate.

Does anyone know what is the ideal way to solve this problem?

- static: traefik.yml

```auto
serversTransport:
  insecureSkipVerify: true

providers:
  file:
    filename: /etc/traefik/config.yml
    watch: true

entryPoints:
  web:
    address: :80
    http:
      redirections:
        entryPoint:
          to: web-secure
          scheme: https
          permanent: true

  web-secure:
    address: :443

```

- dynamic: config.yml

```auto
tls:
  options:
    default:
      sniStrict: true
      minVersion: VersionTLS12
      cipherSuites:
        - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
        - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  stores:
    default:
      defaultCertificate:
        certFile: /etc/traefik/certs/frontend.crt
        keyFile: /etc/traefik/certs/frontend.key
  certificates:
    - certFile: /etc/traefik/certs/frontend.crt
      keyFile: /etc/traefik/certs/frontend.key
      stores:
        - default

tcp:
  routers:
    serviceA-router:
      rule: "HostSNI(`sub.domain.tld`)"
      service: serviceA
      tls:
        passthrough: true
        domains:
          - main: "*.domain.tld" # frontend.crt covers this wildcard

  services:
    serviceA:
      loadBalancer:
        servers:
          - address: hostname:8443

```
