Creating a Kubernetes TLS secret using certificates from DigiCert

It took me a while to make this work. I hope this will help someone out there who also is struggling with the same problem.

We use DigiCert as our SSL certificate provider. The package I received contained three files:

I had to combine the two certificate files into a single file. I didn’t really check the order but I appended the intermediate certificate to my certificate file. Something like this:

$ cp filename.crt tls.crt
$ cat DigiCertCA.crt >> tls.crt
$ cp filename.key tls.key
$ kubectl create secret tls mytls --key tls.key --cert tls.crt

I was able to successfully use the secret in a GCE Ingress:

apiVersion: extensions/v1beta1
kind: Ingress
  - secretName: mytls
    serviceName: myservice
    servicePort: 80
If you have any questions or feedback, please reach out @flowerinthenyt.