Configuring CA Certificate Chain for Agents with the connectware-agent Helm Chart
Configure the CA certificate chain for agents deployed with the connectware-agent Helm chart to verify TLS connections to Connectware.
Prerequisites
Procedure
1
Extract the CA Certificate
pod=$(kubectl -n ${NAMESPACE} get pod -o name -l app.kubernetes.io/name=auth-server | head -1 | sed 's/pod\///g');
kubectl -n ${NAMESPACE} cp -c auth-server $pod:/connectware_certs/cybus_ca.crt cybus_ca.crt
kubectl -n ${NAMESPACE} cp -c auth-server $pod:/connectware_certs/cybus_combined_ca.crt cybus_combined_ca.crt2
Configure the Agent to Use the CA Certificate
Method 1: CA Certificate via Helm Values
protocolMapperAgentDefaults:
tls:
ca:
certChain: |
-----BEGIN CERTIFICATE-----
IIEgTCCAmkCFCN+Wi9RpeajIunZnxdIhvdZep6ZMA0GCSqGSIb3DQEBCwUAMIGN
[skipped for brevity - include whole certificate]
sD9hY3o=
-----END CERTIFICATE-----Method 2: CA Certificate via Kubernetes ConfigMap
cp cybus_combined_ca.crt ca-chain.pem
kubectl create configmap ${CONFIGMAP_NAME} --from-file ca-chain.pem -n ${NAMESPACE}protocolMapperAgentDefaults:
tls:
ca:
existingConfigMap: ${CONFIGMAP_NAME}Replacing a CA Certificate
Last updated
Was this helpful?

