此内容没有您所选择的语言版本。
Chapter 2. Preparing to deploy AMQ Interconnect on OpenShift Container Platform
Before deploying AMQ Interconnect on OpenShift Container Platform, perform one of the following procedures:
If you are evaluating AMQ Interconnect, you can skip these steps however Red Hat recommends always securing AMQ Interconnect communication.
2.1. Creating secrets for SSL/TLS authentication
					If you installed the Red Hat Integration - AMQ Certificate Manager Operator you can skip this procedure, instructions for securing your network with AMQ Certificate Manager are included in the associated procedures. OpenShift uses objects called Secrets to hold sensitive information such as SSL/TLS certificates. If you want to secure inter-router traffic, client traffic, or both, then you must create the SSL/TLS certificates and private keys and provide them to OpenShift as secrets.
				
For OpenShift Container Platform 4.6 and greater, this procedure is the only supported method of securing AMQ Interconnect communication.
Procedure
- If you do not have an existing certificate authority (CA) certificate for inter-router connections, create one. - These commands create a self-signed CA certificate for inter-router connections: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create a certificate for the router signed by the CA. - These commands create a private key and a certificate, and sign the certificate using the CA created in the previous step: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - where - <project_name>is the name of the current OpenShift project.
- Create a secret containing the private key, router certificate, and CA certificate. - This command creates the secret using the key and certificates that were created in the previous steps: - oc create secret generic inter-router-certs-secret --from-file=tls.crt=internal-certs/tls.crt --from-file=tls.key=internal-certs/tls.key --from-file=ca.crt=internal-certs/ca.crt - $ oc create secret generic inter-router-certs-secret --from-file=tls.crt=internal-certs/tls.crt --from-file=tls.key=internal-certs/tls.key --from-file=ca.crt=internal-certs/ca.crt- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- If you want to use SSL/TLS to authenticate client connections (as opposed to authenticating clients using SASL), create a CA certificate for client connections. - These commands create a self-signed CA certificate for client connections: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create a certificate for client connections signed by the CA. - These commands create a private key and a certificate, and then sign the certificate using the CA created in the previous step: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - where - <client_name>is unique for each router client.
- Create a secret containing the CA certificate used to sign client certificates using the certificate that was created in the previous steps: - oc create secret generic client-ca-secret --from-file=ca.crt=client-certs/ca.crt --from-file=tls.crt=client-certs/ca.crt --from-file=tls.key=client-certs/ca-key.pem - $ oc create secret generic client-ca-secret --from-file=ca.crt=client-certs/ca.crt --from-file=tls.crt=client-certs/ca.crt --from-file=tls.key=client-certs/ca-key.pem- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
The Red Hat Integration - AMQ Certificate Manager Operator (cert-manager) is an optional Kubernetes add-on that issues and manages TLS certificates. The Red Hat Integration - AMQ Interconnect uses it to automatically create the TLS certificates needed to secure the router network.
You use OperatorHub to add the Operator to your OpenShift Container Platform cluster.
Installing an Operator requires administrator-level privileges for your OpenShift cluster.
If you are using OpenShift Container Platform 4.6 you must create and manage TLS certificates as described in Section 2.1, “Creating secrets for SSL/TLS authentication”.
When installed, the operator is available to all users and projects in the cluster.
Prerequisites
- 
						Access to an OpenShift Container Platform 4.5 cluster using a cluster-adminaccount.
Procedure
- 
						In the OpenShift Container Platform web console, navigate to  . 
- 
						Choose Red Hat Integration - AMQ Certificate Manager Operatorfrom the list of available Operators, and then click .
- On the Operator Installation page, select All namespaces on the cluster (default), and then click . - The Installed Operators page appears displaying the status of the Operator installation. 
- Verify that the Red Hat Integration - AMQ Certificate Manager Operator Operator is displayed and wait until the Status changes to Succeeded.
- If the installation is not successful, troubleshoot the error: - 
								Click Red Hat Integration - AMQ Certificate Manager Operatoron the Installed Operators page.
- Select the Subscription tab and view any failures or errors.
 
- 
								Click 
Additional resources
- 
						For more information about cert-manager, see the cert-manager documentation.