# Websecure endpoint(s) not working

**URL:** <https://community.traefik.io/t/websecure-endpoint-s-not-working/13251>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [January 29, 2022, 1:29pm UTC](https://community.traefik.io/t/websecure-endpoint-s-not-working/13251 "2022-01-29T13:29:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan2205](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/stefan2205/32/4869_2.png) [@stefan2205](https://community.traefik.io/u/stefan2205)\
**Post date:** [January 29, 2022, 1:29pm UTC](https://community.traefik.io/t/websecure-endpoint-s-not-working/13251/1 "2022-01-29T13:29:41Z")

</div>

This is my traefik.toml

```auto
[entryPoints]
  [entryPoints.web]
    address = ":80"

  [entryPoints.websecure]
    address = ":443"
	  [entryPoints.websecure.http.tls]
		certResolver = "myresolver"
[certificatesResolvers.myresolver.acme]
  email = "MY_MAIL"
  storage = "acme.json"
  [certificatesResolvers.myresolver.acme.httpChallenge]
    # used during the challenge
    entryPoint = "web"

```

And this is my docker-compose:

```auto
version: '3.3'
services:
        traefik:
            image: traefik:latest
            container_name: traefik
            hostname: traefik
            ports:
              - "80:80"
              - "8080:8080"
            volumes:
              - /var/run/docker.sock:/var/run/docker.sock:ro
              - /data/traefik/acme.json:/acme.json
              - /data/traefik/traefik.toml:/traefik.toml
            labels:
              traefik.enable: "true"
              com.centurylinklabs.watchtower.enable: "true" #This is for watchtowerS
            extra_hosts:
              - host.docker.internal:172.17.0.1 # I don't know why this is needed

        whoami:
            # A container that exposes an AP I to show its IP address
            image: traefik/whoami
            labels:
 # - "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
# - "traefik.http.routers.whoami2.rule=Host(`DOMAIN`)"
              - "traefik.http.routers.whoami.rule=Host(`INTERNAL_IP`)"
              - "traefik.http.routers.whoami2.tls=true"

        whoami2:
            image: traefik/whoami
            labels:
              - "traefik.http.routers.whoami2.rule=Host(`DOMAIN`)"
  # - "traefik.http.routers.whoami2.tls.certresolver=myresolver"
 # - "traefik.http.routers.whoami2.middlewares=whoami-https"
# - "traefik.http.middlewares.whoami-https.redirectscheme.scheme=https"
   # - "traefik.http.routers.whoami2.tls=true"

```

Now, whatever I try, I cannot manage to expose the whoami via https. In the dashboard, all rules seem to be correct and active. But in the browser I always get ERR\_CONNECTION\_CLOSED, and curl gives me either "curl: (35) OpenSSL SSL\_connect: SSL\_ERROR\_SYSCALL in connection to" on my Raspberry Pi or "curl: (35) OpenSSL SSL\_connect: SSL\_ERROR\_SYSCALL in connection to" in Windows.

When I try to connect via https, nothing is shown in the logs - no matter whether I try with the domain name or the internal IP address. The let's encrypt certificate seems to be there, at least I see no errors for in the logs, and I see the data in acme.json

Any idea where I have errors in the setup?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![stefan2205](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/stefan2205/32/4869_2.png) [@stefan2205](https://community.traefik.io/u/stefan2205)\
**Post date:** [January 30, 2022, 9:31pm UTC](https://community.traefik.io/t/websecure-endpoint-s-not-working/13251/2 "2022-01-30T21:31:56Z")

</div>

Found it myself - had to map the port 443 for traefik 😖

```auto
ports:
              - "80:80"
              - "8080:8080"
              **- "443:443"**

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [February 2, 2022, 9:32pm UTC](https://community.traefik.io/t/websecure-endpoint-s-not-working/13251/3 "2022-02-02T21:32:50Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
