--- Title: Manage Redis Enterprise cluster (REC) certificates alwaysopen: false categories: - docs - operate - kubernetes description: Install your own certificates to be used by the Redis Enterprise cluster's operator. linkTitle: Manage REC certificates weight: 94 url: '/operate/kubernetes/7.22/security/manage-rec-certificates/' --- By default, Redis Enterprise Software for Kubernetes generates TLS certificates for the cluster during creation. These self-signed certificates are generated on the first node of each Redis Enterprise cluster (REC) and are copied to all other nodes added to the cluster. For the list of of certificates used by Redis Enterprise Software and the traffic they encrypt, see the [certificates table]({{< relref "/operate/rs/security/certificates" >}}). To install and use your own certificates with Kubernetes on your Redis Enterprise cluster, they need to be stored in [secrets](https://kubernetes.io/docs/concepts/configuration/secret/). The REC custom resource also needs to be configured with those secret names to read and use the certificates. ## Create a secret to hold the new certificate Create the [secret](https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/) with the required fields shown below. ```sh kubectl create secret generic \ --from-file=certificate= \ --from-file=key= \ --from-literal=name= ``` {{}}For internode encryption certificates, see [Internode encryption]({{< relref "/operate/kubernetes/7.22/security/internode-encryption" >}}) for detailed configuration instructions.{{}} ## Update certificates in the REC custom resource Edit the Redis Enterprise cluster (REC) custom resource to add a `certificates` subsection under the `spec` section. You are only required to add the fields for the certificates you are installing. ```yaml spec: certificates: apiCertificateSecretName: cmCertificateSecretName: syncerCertificateSecretName: metricsExporterCertificateSecretName: proxyCertificateSecretName: cpInternodeEncryptionCertificateSecretName: dpInternodeEncryptionCertificateSecretName: ``` ### Update certificates through the API Alternatively, you can also update the REC certificates via the API: ```API PUT /v1/cluster/update_cert { "certificate": , "key": , "name": } ``` ### Verify the certificate was updated Check the operator logs and use the API to verify the certificate has been updated. ```api GET /v1/cluster/certificates ``` ## More info - [Update certificates]({{< relref "/operate/rs/security/certificates/updating-certificates" >}}) - [Install your own certificates]({{< relref "/operate/rs/security/certificates/create-certificates" >}}) - [Glossary/Transport Layer Security (TLS)]({{< relref "/glossary#letter-t" >}})