-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH CA file is required #3
Comments
hi @gwuah , [thrd:sasl_ssl://rocket-02.srvs.cloudkafka.com:9094/bootstrap]: sasl_ssl://rocket-02.srvs.cloudkafka.com:9094/bootstrap: SSL handshake failed: Disconnected: connecting to a PLAINTEXT broker listener? (after 85ms in state CONNECT, 1 identical error(s) suppressed) my Config is below and /etc/ssl/certs/karafka.pem has CA certificate downloaded .Any clue how i can resolve this? config := &kafka.ConfigMap{
|
@sumeshkanayi so your config ends up looking like this. func getProducerConfig(config *core.Config) *kafka.ConfigMap {
return &kafka.ConfigMap{
"metadata.broker.list": config.CLOUDKARAFKA_BROKERS,
"security.protocol": "SASL_SSL",
"sasl.mechanisms": "SCRAM-SHA-256",
"sasl.username": config.CLOUDKARAFKA_USERNAME,
"sasl.password": config.CLOUDKARAFKA_PASSWORD,
"ssl.ca.location": "./cloudkarafka.ca",
}
}
func getConsumerConfig(config *core.Config) *kafka.ConfigMap {
return &kafka.ConfigMap{
"metadata.broker.list": config.CLOUDKARAFKA_BROKERS,
"security.protocol": "SASL_SSL",
"sasl.mechanisms": "SCRAM-SHA-256",
"sasl.username": config.CLOUDKARAFKA_USERNAME,
"sasl.password": config.CLOUDKARAFKA_PASSWORD,
"group.id": config.KAFKA_GROUP_ID,
"default.topic.config": kafka.ConfigMap{"auto.offset.reset": "earliest"},
"auto.offset.reset": "earliest",
"ssl.ca.location": "./cloudkarafka.ca",
}
} NB: The first file is outdated. So you have to download the second one |
Thanks @gwuah i tried that after seeing your comments but didnt make any difference .Trying upgrading open ssl now, can you tell me what openssl version are you using in your setup? |
In case anyone is not able to connect to cloudkarafka due to handshake issues, see this file https://www.cloudkarafka.com/docs/faq.html
The text was updated successfully, but these errors were encountered: