Enable TLS between Client and DPG
For Kubernetes deployment with Helm
- In the - values.yamlfile, under- configuration, set the value of tlsenabled to true to configure DPG as a TLS terminator for clients.
- Add the below lines to the - datasection of- kind:Secretin the- deployment.yamlfile.- 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 - datasection of- ConfigMap, set- TLS_ENABLEDto- true.
- Add the below lines to the - datasection of- kind:Secretin the- deployment.yamlfile.- 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_ENABLEDfield to- true. When you set- TLS_ENABLEDto- true, 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>