$ chmod +x ca-setup.sh
Learn how to add custom trusted certificate authorities to Red Hat Advanced Cluster Security for Kubernetes.
If you are using an enterprise certificate authority (CA) on your network, or self-signed certificates, you must add the CA’s root certificate to Red Hat Advanced Cluster Security for Kubernetes as a trusted root CA.
Adding trusted root CAs allows:
Central and Scanner to trust remote servers when you integrate with other tools.
Sensor to trust custom certificates you use for Central.
You can add additional CAs during the installation or on an existing deployment.
You must first configure your trusted CAs in the cluster where you have deployed Central and then propagate the changes to Scanner and Sensor. |
To add custom CAs:
Download the ca-setup.sh
script.
|
Make the ca-setup.sh
script executable:
$ chmod +x ca-setup.sh
To add:
A single certificate, use the -f
(file) option:
$ ./ca-setup.sh -f <certificate>
|
Multiple certificates at once, move all certificates in a directory, and then use the -d
(directory) option:
$ ./ca-setup.sh -d <directory_name>
|
After you configure trusted CAs, you must make Red Hat Advanced Cluster Security for Kubernetes services trust them.
If you have configured trusted CAs after the installation, you must restart Central.
Additionally, if you are also adding certificates for integrating with image registries, you must restart both Central and Scanner.
You can restart the Central container by killing the Central container or by deleting the Central pod.
Run the following command to kill the Central container:
You must wait for at least 1 minute, until OpenShift Container Platform propagates your changes and restarts the Central container. |
$ oc -n stackrox exec deploy/central -c central -- kill 1
Or, run the following command to delete the Central pod:
$ oc -n stackrox delete pod -lapp=central
You can restart the Scanner container by deleting the pod.
Run the following command to delete the Scanner pod:
On OpenShift Container Platform:
$ oc delete pod -n stackrox -l app=scanner
On Kubernetes:
$ kubectl delete pod -n stackrox -l app=scanner
After you have added trusted CAs and configured Central, the CAs are included in any new Sensor deployment bundles that you create.
|