<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question c++ kafka secure connection in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/c-kafka-secure-connection/m-p/348661#M235420</link>
    <description>&lt;P&gt;client :C++ client (librdkafka)&lt;/P&gt;&lt;P&gt;Used below config securely connect&amp;nbsp; to&amp;nbsp; cloudera kafka broker .&amp;nbsp;&lt;/P&gt;&lt;P&gt;SASL_SSL/GSSAPI - truststore/keystore&amp;nbsp; JKS files&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssl.truststore.location=&amp;lt; JKS File &amp;gt;&lt;/P&gt;&lt;P&gt;ssl.truststore.password ='xxxxxx'&lt;/P&gt;&lt;P&gt;C++ client not accepting config as it is specific to&amp;nbsp; java .&lt;/P&gt;&lt;P&gt;Is there any alternate&amp;nbsp; mechanism available securely connect to cloudera broker&lt;/P&gt;&lt;P&gt;&amp;nbsp;and config supported by c++ clients?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 03:26:42 GMT</pubDate>
    <dc:creator>venkatpasya</dc:creator>
    <dc:date>2022-07-25T03:26:42Z</dc:date>
    <item>
      <title>c++ kafka secure connection</title>
      <link>https://community.cloudera.com/t5/Support-Questions/c-kafka-secure-connection/m-p/348661#M235420</link>
      <description>&lt;P&gt;client :C++ client (librdkafka)&lt;/P&gt;&lt;P&gt;Used below config securely connect&amp;nbsp; to&amp;nbsp; cloudera kafka broker .&amp;nbsp;&lt;/P&gt;&lt;P&gt;SASL_SSL/GSSAPI - truststore/keystore&amp;nbsp; JKS files&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssl.truststore.location=&amp;lt; JKS File &amp;gt;&lt;/P&gt;&lt;P&gt;ssl.truststore.password ='xxxxxx'&lt;/P&gt;&lt;P&gt;C++ client not accepting config as it is specific to&amp;nbsp; java .&lt;/P&gt;&lt;P&gt;Is there any alternate&amp;nbsp; mechanism available securely connect to cloudera broker&lt;/P&gt;&lt;P&gt;&amp;nbsp;and config supported by c++ clients?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 03:26:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/c-kafka-secure-connection/m-p/348661#M235420</guid>
      <dc:creator>venkatpasya</dc:creator>
      <dc:date>2022-07-25T03:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: c++ kafka secure connection</title>
      <link>https://community.cloudera.com/t5/Support-Questions/c-kafka-secure-connection/m-p/349452#M235666</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99391"&gt;@venkatpasya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your question is how to use C++ client (librdkafka) client to connect to a Kerberos + SSL authenticated cluster, please refer to the link below&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/edenhill/librdkafka" target="_blank"&gt;https://github.com/edenhill/librdkafka&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the Features section, it is mentioned that librdkafka supports SASL (GSSAPI/Kerberos/SSPI, PLAIN, SCRAM, OAUTHBEARER) support.&lt;BR /&gt;&amp;amp;&lt;BR /&gt;SSL support&lt;/P&gt;&lt;P&gt;For specific examples, click the examples directory, or &lt;A href="https://github.com/edenhill/librdkafka/tree/master/examples" target="_blank"&gt;https://github.com/edenhill/librdkafka/tree/master/examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more detail:&lt;/P&gt;&lt;P&gt;Please take a look at this example&lt;BR /&gt;&lt;A href="https://github.com/confluentinc/examples/tree/master/clients/cloud/c" target="_blank"&gt;https://github.com/confluentinc/examples/tree/master/clients/cloud/c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In producer.c, it needs a configuration file config-file, and then calls read_config on line 160 to read line by line from config-file, and finally constructs the object conf. The read_config function is in common.c (from line 42 onwards). config-file can refer to &lt;A href="https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md" target="_blank"&gt;https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md&lt;/A&gt; , all parameters are included in this link. What parameters need to be set in the Kerberos + SSL environment, please refer to point 5 in &lt;A href="https://github.com/edenhill/librdkafka/wiki/Using-SASL-with-librdkafka" target="_blank"&gt;https://github.com/edenhill/librdkafka/wiki/Using-SASL-with-librdkafka&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this information helped you, then it will be appreciated if you will take a moment to click on KUDOS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:52:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/c-kafka-secure-connection/m-p/349452#M235666</guid>
      <dc:creator>Babasaheb</dc:creator>
      <dc:date>2022-08-03T14:52:55Z</dc:date>
    </item>
  </channel>
</rss>

