I've deployed a backend configured to use https.
I''ve configured an traeffic route like:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-registry
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`registry.localhost`)
services:
- name: registry-docker-registry
port: 5000
scheme: https
tls: {}
As you can see, I've set that:
- From internet to traeffik, using https with default traeffik generated certificates.
- From traeffik to backend, using https with certificates configured to backend.
The problem I'm facing with is that:
When traeffik tries to connect to backend using https
, it's telling me:
time="2020-04-14T08:20:53Z" level=debug msg="vulcand/oxy/roundrobin/rr: begin ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/v2/_catalog\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"*/*\"],\"User-Agent\":[\"curl/7.58.0\"],\"X-Forwarded-Host\":[\"registry.localhost\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"traefik-54dc69dd6f-n4zg8\"],\"X-Real-Ip\":[\"10.42.2.48\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"registry.localhost\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"10.42.2.48:59318\",\"RequestURI\":\"/v2/_catalog\",\"TLS\":null}"
time="2020-04-14T08:20:53Z" level=debug msg="vulcand/oxy/roundrobin/rr: Forwarding this request to URL" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/v2/_catalog\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"*/*\"],\"User-Agent\":[\"curl/7.58.0\"],\"X-Forwarded-Host\":[\"registry.localhost\"],\"X-Forwarded-Port\":[\"443\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"traefik-54dc69dd6f-n4zg8\"],\"X-Real-Ip\":[\"10.42.2.48\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"registry.localhost\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"10.42.2.48:59318\",\"RequestURI\":\"/v2/_catalog\",\"TLS\":null}" ForwardURL="https://10.42.0.122:5000"
time="2020-04-14T08:20:53Z" level=debug msg="'500 Internal Server Error' caused by: x509: cannot validate certificate for 10.42.0.122 because it doesn't contain any IP SANs"
Basically, it's telling me that:
cannot validate certificate backend certificates
Any ideas?