Updating the Control Plane certificates in Cloudera Data Engineering Virtual Clusters
Learn about how to update the Control Plane certificates in Cloudera Data Engineering Virtual Clusters.
When you create a Cloudera Data Engineering Virtual Cluster, Cloudera Data Engineering automatically installs a self-signed TLS certificate. Perform the following steps to update the TLS certificate for Cloudera Data Engineering virtual clusters:
- In the Cloudera console, click the Data Engineering tile. The Cloudera Data Engineering Home page displays.
- Click Administration in the left navigation menu. The Administration page displays.
- In the Services column, select the service containing the virtual cluster for which you want to update the TLS certificate.
- In the Virtual Clusters column on the right, click the Cluster Details icon for the virtual cluster for which you want to update the TLS certificate.
- Click to copy the URL to your clipboard.
- Paste the URL into a text editor to identify the endpoint host. For example, the URL is
similar to the
following:
http://dfdj6kgx.cde-2cdxw5x5.apps.ecs-demo.example.com/dex/api/v1The endpoint host is
dfdj6kgx.cde-2cdxw5x5.apps.ecs-demo.example.com. - Create your CA certificate and a private key. Make sure that your CA certificate includes
the Subject Alternative Names (SAN) for all relevant endpoints.
- CN (Common Name):
*.cde-2cdxw5x5.apps.ecs-demo.example.com - Domain name for the Virtual Cluster:
dfdj6kgx.cde-2cdxw5x5.apps.ecs-demo.example.com
- CN (Common Name):
- Sign in to Cloudera Data Engineering as
VC Admin. The Cloudera Data Engineering Home page displays. - Click Administration in the left navigation menu. The Administration page displays.
- In the Services column, select the service containing the virtual cluster for which you want to update the TLS certificate.
- In the Virtual Clusters column on the right, click the Cluster Details icon for the virtual cluster for which you want to update the TLS certificate.
- On the Configuration tab, click TLS Certificate.
- Click Upload Certificate.
- Under PEM file, click Select File and select
your TLS certificate.
- Under Key file, click Select File and select your key file.
- (Optional) If your key file is encrypted with a password, then enter the password in the Passphrase field.
- Click Install Certificate.
- Repeat the preceding steps for all Virtual Clusters.
Prerequisites:
Perform the following steps to update the TLS certificate for Cloudera Data Engineering virtual clusters:
- Make sure that you are using the VCAdmin role for the corresponding Virtual Cluster and
rotate Virtual Cluster TLS
certificate.
cdpcurl -X PUT -k [***CDP-ENDPOINT***]/dex/api/v1/cluster/[***CLUSTER-ID***]/instance/[***VIRTUAL-CLUSTER-ID***]/tls' \ -d '{ "certificate_details": { "certificate": "[***BASE64-encoded.pem-FILE-CONTENT***]", "key": "[***BASE64-ENCODED-FILE-CONTENT***]", "passphrase": "[***BASE64-ENCODED-PASSPHRASE-FOR-THE-KEY***]" (optional) } }' \ --access_key [***ACCESS-KEY***] \ --private_key [***PRIVATE-KEY***] - Make sure that you are using the VCUser role for the corresponding Virtual Cluster and view
the Virtual Cluster level TLS Certificate
information.
cdpcurl -X GET '[***CDP-ENDPOINT***]/dex/api/v1/cluster/[***CLUSTER-ID***]/instance/[***VIRTUAL-CLUSTER-ID***]/tls' \ -d '{}' \ --access_key [***ACCESS-KEY***] \ --private_key [***PRIVATE-KEY***] - (From Cloudera Data Engineering 1.5.5 SP1 onwards) For Spark Connect
sessions in the OpenShift Container Platform cluster, perform the following steps:
- In the Cloudera console, click the Data Engineering tile. The Cloudera Data Engineering Home page is displayed.
- Click Administration in the left navigation menu. The Administration page is displayed.
- In the Services column, select the service containing the virtual cluster for which you want to update the TLS certificate.
- In the Virtual Clusters column on the right, click the Cluster Details icon for the virtual cluster for which you want to update the TLS certificate.
- Click to copy the URL to your clipboard.
- Paste the URL into a text editor to identify the endpoint host. For example, the
URL is similar to the
following:
https://dfdj6kgx.cde-2cdxw5x5.apps.ocp-demo.example.com/dex/api/v1The endpoint host for the Spark Connect session is
sc-dfdj6kgx.cde-2cdxw5x5.apps.ocp-demo.example.com. Spark Connect endpoints are prefixed withsc-. - Create your CA certificate and a private key. Make sure that your CA certificate
includes the Subject Alternative Names (SAN) for all relevant endpoints for the
Spark Connect Endpoint host.
Domain name for the Spark Connect virtual cluster:
sc-dfdj6kgx.cde-2cdxw5x5.apps.ocp-demo.example.com - Make sure that you are using the VCAdmin role for the corresponding Virtual
Cluster and rotate the Virtual Cluster TLS
certificate.
cdpcurl -X PUT -k [***CDP-ENDPOINT***]/dex/api/v1/cluster/[***CLUSTER-ID***]/instance/[***VIRTUAL-CLUSTER-ID***]/tls' \ -d '{ "certificate_details": { "certificate": "[***BASE64-encoded.pem-FILE-CONTENT***]", "key": "[***BASE64-ENCODED-FILE-CONTENT***]", "passphrase": "[***BASE64-ENCODED-PASSPHRASE-FOR-THE-KEY***]" (optional) “service-type”: “spark-connect” } }' \ --access_key [***ACCESS-KEY***] \ --private_key [***PRIVATE-KEY***] - Make sure that you are using the VCUser role for the corresponding Virtual Cluster
and view the Virtual Cluster-level TLS Certificate
information.
cdpcurl -X GET '[***CDP-ENDPOINT***]/dex/api/v1/cluster/[***CLUSTER-ID***]/instance/[***VIRTUAL-CLUSTER-ID***]/tls?service-type=spark-connect' \ -d '{}' \ --access_key [***ACCESS-KEY***] \ --private_key [***PRIVATE-KEY***]
