To ensure secure communication, please complete the configuration related to encrypted transmission on the Kafka client.
The following operations should be performed on the control node within the cluster.
Prepare the files according to the authentication type of the Kafka instance. Each file corresponds one-to-one with the Kafka instance. If there are multiple instances, separate configurations for each file are required, and the related files can be placed in different paths. For scenarios involving access within the cluster, the client path is exemplified as /home/kafka
.
Encryption Method | Authentication Method | Required Files |
---|---|---|
Intra-cluster: TLS External: TLS | SCRAM-SHA-512 or none | CA certificate: ca.p12 Client configuration file: client-ssl.properties |
Intra-cluster: TLS External: TLS | TLS | CA certificate: ca.p12 User certificate: user.p12 Client configuration file: client-ssl.properties |
Generate the CA certificate.
Generate the password for the CA certificate. Please record this password.
Generate the user certificate.
Generate the password for the user certificate. Please record this password.
Prerequisite: On the User Management tab, click on the secret dictionary and record the value of the password field.
To enable external access, include ssl.endpoint.identification.algorithm= in the configuration file.
Tip: Please refer to the table in the required file preview to determine the necessary files for your method of access.
Intra-cluster Access
Ensure that the required files are placed in the paths mentioned in the client configuration files.
External Access
Ensure that the required files are placed in the paths mentioned in the client configuration files.