AlexTM
October 22, 2019, 7:23pm
1
Is there a way to generate a self signed certs on a dynamic basis that would have the CN of the HostSNI record?
Something like:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: ingress-database-tls
spec:
entryPoints:
- db
routes:
- match: HostSNI(`{{INGRESS_DOMAIN}}`)
kind: Rule
priority: 1
services:
- name: database-service
port: 1433
tls: {}
@AlexTM ,
For most situations, to use self-signed certificates, your client would have to skip certificate validation, which includes the name check.
For this reason, having this automated from within traefik would not be very useful.
However, you can use a tool like pebble or boulder to create custom certificates with your own CA, dynamically:
AlexTM
October 22, 2019, 7:35pm
3
Yes appreciate this is probably not a standard use case. However Traefik already happily generates self signed certs if no details are provided and tls is requested. Would is be feasible to extend the self signing to include the host name?