Hi, having some issues with a self-signed certificates. Not sure why it doesn't seem to be being recognized. Wanted to double check to see if my traefik.yaml is misconfigured
reverse-proxy_1 | time="2019-10-30T17:48:55Z" level=debug msg="http: TLS handshake error from 192.168.16.1:34924: remote error: tls: unknown certificate"
reverse-proxy_1 | time="2019-10-30T17:48:56Z" level=debug msg="Serving default certificate for request: \"dev.app.com\""
reverse-proxy_1 | time="2019-10-30T17:48:56Z" level=debug msg="Serving default certificate for request: \"dev.app.com\""
reverse-proxy_1 | time="2019-10-30T17:48:56Z" level=debug msg="http: TLS handshake error from 192.168.16.1:34926: remote error: tls: unknown certificate"
reverse-proxy_1 | time="2019-10-30T17:48:56Z" level=debug msg="http: TLS handshake error from 192.168.16.1:34928: remote error: tls: unknown certificate"
docker-compose.yml
reverse-proxy:
image: traefik:latest
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs/:/certs/
- ./traefik.yaml:/traefik.yaml
labels:
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
Contents of ./certs
$ ls -la ./certs
total 56
drwxr-xr-x 9 kakwong 120049300 288B Oct 30 12:30 ./
drwxr-xr-x 101 kakwong 120049300 3.2K Oct 30 13:50 ../
-rw-r--r-- 1 kakwong 120049300 956B Oct 30 11:55 cert.crt
-rw-r--r-- 1 kakwong 120049300 3.2K Oct 30 11:56 cert.key
traefik.yaml
entryPoints:
web:
address: ":80"
web-secure:
address: ":443"
providers:
file:
watch: true
debugLogGeneratedTemplate: true
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: true
api:
insecure: true
tls:
certificates:
- certFile: /certs/cert.crt
keyFile: /certs/cert.key
log:
level: debug
accessLog:
filePath: "/etc/log/traefik_access.log"
bufferingSize: 100