Replies: 14 comments 26 replies
-
Sorry, but I think you will need to:
|
Beta Was this translation helpful? Give feedback.
-
First - i'm sorry for my english and stupidity
and now i have root.crt and kafka-int-ca.pem
i get it from pem with this commands
kubectl create secret generic my-secret --from-file=prp-kafka-server.key --from-file=prp-kafka-server.crt Commands i take from here https://strimzi.io/docs/operators/latest/full/configuring.html#kafka-listener-certificates-str
and kubectl apply -f myyml.yml
vault write -field certificate kafka-int-ca/issue/kafka-client
keytool -importkeystore -deststorepass smtpass
security.protocol=SSL *now i know that you didn't work with kafkacat but it seems like client.props are the same
@test2:~$ kafkacat -b ***8:9094 -F client.properties -t topic -C -e And i think this is not the problem of kcat. Somewhere i made a mistake/s maybe somebody try doing something like this.... |
Beta Was this translation helpful? Give feedback.
-
openssl give me smth like this test2:$ openssl s_client -connect ...:9094 -servername .... Certificate chain Server certificate issuer=CN = kafka intermediate ca Acceptable client certificate CA names SSL handshake has read 1683 bytes and written 413 bytes New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384 140333897921856:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../ssl/record/ssl3_record.c:676:.... |
Beta Was this translation helpful? Give feedback.
-
Does not work. Start from vault |
Beta Was this translation helpful? Give feedback.
-
Next deploy kafka
- broker: 1loadBalancerIP:- broker: 2loadBalancerIP: fff
superUsers:- CN=kafka-admin
|
Beta Was this translation helpful? Give feedback.
-
next
|
Beta Was this translation helpful? Give feedback.
-
next
|
Beta Was this translation helpful? Give feedback.
-
next 1.security.protocol=SSL 2../bin/kafka-console-producer.sh --bootstrap-server 10.73.96.58:9094 -topic mytopic --producer.config ./bin/client.properties |
Beta Was this translation helpful? Give feedback.
-
and finally get this org.apache.kafka.common.KafkaException: Failed to construct kafka producer |
Beta Was this translation helpful? Give feedback.
-
self answer if here 1.security.protocol=SSL i change ssl.key.password to changeme i start get from client this from kafka it looks like |
Beta Was this translation helpful? Give feedback.
-
And selfanswering again added in client.properties tthis ssl.endpoint.identification.algorithm: get from kafka this: 2022-05-29 08:28:53,161 DEBUG [Controller id=0] Topics not in preferred replica for broker 0 HashMap() (kafka.controller.KafkaController) [controller-event-thread] and from client this :~/kafka$ ./bin/kafka-console-producer.sh --bootstrap-server 10.73.96.58:9094 -topic mytopic --producer.config ./bin/client.properties
|
Beta Was this translation helpful? Give feedback.
-
It works with server crt and key and client's by strimzi. Thank you! |
Beta Was this translation helpful? Give feedback.
-
So now i create
apiVersion: kafka.strimzi.io/v1beta2 and my question is what i must use as keystore and truststore truststore is somth generateted with it --from-file=prp-kafka-server.key --from-file=prp-kafka-server.crt |
Beta Was this translation helpful? Give feedback.
-
Kafka
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
try to do this https://strimzi.io/docs/operators/latest/full/configuring.html#kafka-listener-certificates-str
and getting tls handshake error
cert are selfsigned, generated by vault
question is
Beta Was this translation helpful? Give feedback.
All reactions