Enable TLS between Client and DPG
For Kubernetes deployment with Helm
In the
values.yaml
file, underconfiguration
, set the value of tlsenabled to true to configure DPG as a TLS terminator for clients.Add the below lines to the
data
section ofkind:Secret
in thedeployment.yaml
file.data: server.crt: {{.Values.configuration.servercrt}} server.key: {{.Values.configuration.serverkey}}
Update your DPG deployment using the following command.
helm upgrade <helm-chart-name> <path-of-helm-chart> -n <namespace>
For Kubernetes deployment without Helm
In your deployment file, in the
data
section ofConfigMap
, setTLS_ENABLED
totrue
.Add the below lines to the
data
section ofkind:Secret
in thedeployment.yaml
file.data: server.crt: <tls-certificate> server.key: <tls-key>
Update your DPG deployment using the following command.
kubectl replace -f `<deployment_filename>` -n `<namespace>
For Standalone deployment
Stop the existing container.
In the environment variable, set the
TLS_ENABLED
field totrue
. When you setTLS_ENABLED
totrue
, you must specify the following variables:CERT_VALUE
KEY_VALUE
Restart the container using the following command.
docker run -d --name < name> -p <host-port>:<DPG_port> -e "KMS=<ipaddress/hostname>" -e "TLS_ENABLED=true" -e "CERT_PATH=<cert value>" -e "KEY_PATH=<key value>" -e "REG_TOKEN=<registrationtoken>" -e "DESTINATION_URL=<destinationurl>" -e "DPG_PORT=<DPG_port>" <DPG-image-name>