Change TLS settings between application and CRDP
Note
It is recommended to keep your registration token and certificates in secret.
It is recommended to keep your secrets in a safe vault.
Steps to enable TLS with mandatory client authentication
Create a secret, if it doesn't exist.
In the CRDP deployment file (for example,
<crdp-deployment.yaml>
), add/update the below lines in theenv
section.Upgrade your CRDP deployment.
Example
Create a secret, if it doesn't exist.
Note
If your secret already exists with
<registration token>
:Update the values of
cert
,key
, andca
in the secret, ORCreate a new secret using the
kubectl create secret
command as described above
In the CRDP deployment file (for example,
<crdp-deployment.yaml>
), add/update the below lines in theenv
section.Update your CRDP deployment.
Stop the existing container.
Start the container with the updated configuration, as below.
In the command,
SERVER_MODE
istls-cert
CERT_VALUE
: Value of the client certificate.KEY_VALUE
: Value of the key associated with the client certificate.TRUSTED_CA
: Value of the CA certificate.
Now, CRDP will verify the certificate presented by the client.
Steps to enable TLS without client authentication
In the
values.yaml
file, underconfiguration
, update the value ofservermode
totls-cert-opt
.In the CRDP deployment file (for example,
<crdp-deployment.yaml>
), add the below lines to thedata
section ofkind:Secret
.Upgrade your CRDP deployment.
In the CRDP deployment file (for example,
<crdp-deployment.yaml>
), in thedata
section ofConfigMap
, setSERVER_MODE
totls-cert-opt
.Add the following lines to the
data
section ofkind:Secret
.Update your CRDP deployment.
Stop the existing container.
In the environment variable, set the
SERVER_MODE
field totls-cert-opt
.Specify the environment variables:
CERT_VALUE
: Value of the client certificate.KEY_VALUE
: Value of the key associated with the client certificate.
Start the container.
Steps to disable TLS
In the
values.yaml
file, underconfiguration
, update the value ofservermode
tono-tls
.Upgrade your CRDP deployment.
In your deployment file, in the
data
section ofConfigMap
, setSERVER_MODE
tono-tls
.Update your CRDP deployment.
Stop the existing container.
In the environment variable, set the
SERVER_MODE
field tono-tls
.Start the container.