第 2 章 Adding trusted certificate authorities
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.
2.1. Configuring additional CAs 复制链接链接已复制到粘贴板!
To add custom CAs:
Procedure
Download the
ca-setup.shscript.注意-
If you are doing a new installation, you can find the
ca-setup.shscript in thescriptsdirectory atcentral-bundle/central/scripts/ca-setup.sh. -
You must run the
ca-setup.shscript in the same terminal from which you logged into your OpenShift Container Platform cluster.
-
If you are doing a new installation, you can find the
Make the
ca-setup.shscript executable:$ chmod +x ca-setup.shTo add:
A single certificate, use the
-f(file) option:$ ./ca-setup.sh -f <certificate>注意- You must use a PEM-encoded certificate file (with any extension).
-
You can also use the
-u(update) option along with the-foption to update any previously added certificate.
Multiple certificates at once, move all certificates in a directory, and then use the
-d(directory) option:$ ./ca-setup.sh -d <directory_name>注意-
You must use PEM-encoded certificate files with a
.crtor.pemextension. - Each file must only contain a single certificate.
-
You can also use the
-u(update) option along with the-doption to update any previously added certificates.
-
You must use PEM-encoded certificate files with a