Configure traefik to use your own existing SSL certificate in kubernetes

openssl pkcs12 -in .\certificate.pfx -clcerts -nokeys -out certificate.crt
openssl pkcs12 -in .\certificate.pfx -nocerts -out certificate.key
openssl rsa -in .\certificate.key -out certificatenew.key
kubectl create secret tls my-secret --key .\certificatenew.key --cert .\certificate.crt 
tls:
secretName: my-secret
apiVersion: traefik.containo.us/v1alpha1kind: TLSStoremetadata:name: defaultspec:defaultCertificate:secretName: my-secret
traefik.ingress.kubernetes.io/router.entrypoints: websecuretraefik.ingress.kubernetes.io/router.tls: "true"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store