如何使用汇合卡夫卡与密钥存储文件
问题描述:
当我使用的密钥存储文件,在配置中添加属性如何使用汇合卡夫卡与密钥存储文件
ssl.keystore.location
ssl.keystore.password
ssl.key.password
ssl.truststore.location
ssl.truststore.password
,它抛出这个错误:
Can not find the property ssl.truststore.location"
我怎样才能使用密钥库文件librdkafka?它困扰我,是否有人知道如何使用密钥存储文件使用confluent-kafka?
汇合卡夫卡:https://github.com/confluentinc/confluent-kafka-dotnet/
按照CONFIGURATION.md:https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md
我不能在CONFIGURATION.md找物业
答
ssl.keystore.*
和ssl.truststore.*
是Java客户端性能,这使得使用Java的JAAS框架和特定于Java的信任/密钥库。
librdkafka(及其兄弟客户端)利用使用PEM和证书文件格式的OpenSSL。
请参见本指南如何设置它: https://github.com/edenhill/librdkafka/wiki/Using-SSL-with-librdkafka
而且这太问题介绍了如何密钥库转换成OpenSSL的文件类型: Converting a Java Keystore into PEM Format