Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add an intermediate SSL certificate to Kubernetes ingress TLS configuration?

Tags:

The documentation does not specify how to add an intermediate SSL certificate: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls

I suppose the next step would be to read the Kubernetes source code.

like image 232
Chris Stryczynski Avatar asked Aug 21 '17 11:08

Chris Stryczynski


People also ask

How do I setup a TLS certificate?

In the left pane, click Connections. In the right pane, right-click the connection that you want to configure, and then click Properties. On the General tab, click Edit next to Certificate. In the Select Certificate dialog box, click the certificate from the list that you have bought for your Terminal Server Hostname.


2 Answers

If you add multiple certificates in tls.cert key in Kubernetes TLS Ingress Configuration. Please do this like this

-----BEGIN CERTIFICATE----- <put your certificate value in a single line > -----END CERTIFICATE----- -----BEGIN INTERMEDIATE CERTIFICATE----- <put your certificate value in a single line> -----END INTERMEDIATE CERTIFICATE----- 

Otherwise, you'll get an error in ssl cert chain validation.

Always put main certificate first.

like image 125
Saran Avatar answered Sep 21 '22 06:09

Saran


It has to be appended to the certificate value. Just like nginx.

like image 34
Chris Stryczynski Avatar answered Sep 21 '22 06:09

Chris Stryczynski