To install Kong in the hybrid model by Helm, the parameters below are typically required in the case of using self-signed intermediate certificates.
In CP config:
- name: KONG_CLUSTER_MTLS
value: pki
- name: KONG_CLUSTER_CA_CERT
value: {path-to-chain.cert} # in case of using immediate CA
- name: KONG_CLUSTER_CERT
value: {path-to-cert}
- name: KONG_CLUSTER_CERT_KEY
value: {path-to-key}In DP config:
- name: KONG_CLUSTER_MTLS
value: pki
- name: KONG_CLUSTER_CA_CERT
value: {path-to-chain.cert} # in case of using immediate CA
- name: KONG_CLUSTER_SERVER_NAME
value: {CN} # this should be matching with cp cert CN name
- name: KONG_CLUSTER_CERT
value: {path to cert}
- name: KONG_CLUSTER_CERT_KEY
value: {path to key}
- name: KONG_LUA_SSL_TRUSTED_CERTIFICATE
value: {path-to-chain.cert} # in case of using immediate CA
- name: KONG_CLUSTER_TELEMETRY_SERVER_NAME
value: {same to KONG_CLUSTER_SERVER_NAME}Troubleshooting:
-
Error message:
telemetry, tls handshake failed: certificate host mismatchSolution:
Please add
KONG_CLUSTER_TELEMETRY_SERVER_NAMEinto the DP. The value should be the same asKONG_CLUSTER_SERVER_NAME. -
Error message:
unable to verify the first certificateThis error message indicates an intermediate CA is used.
In this case, a full chain from root CA to intermediate CA should be provided.
For example, let’s call it
chain.pem.Inside it would look like:
-----BEGIN CERTIFICATE----- {root ca cert} -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- {intermediate ca cert} -----END CERTIFICATE-----Then, make the value of
KONG_CLUSTER_CA_CERTandKONG_LUA_SSL_TRUSTED_CERTIFICATEpoint to thischain.pem.