question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set SSL CA Cert Pem via In-memory

See original GitHub issue

Description

I’m trying to replace the file paths to in-memory certs, but i was not able to figure out how to set SslCa pem content from in-memory. I only see SslCaLocation property and there is no equivalent SslCaPem property

How to reproduce

producerConfig = new ProducerConfig
                {
                    BootstrapServers = "<<servers with ports in csv>>",
                    Acks = Acks.All,
                    SecurityProtocol = SecurityProtocol.Ssl,
                    SslCaLocation = "root-ca-chain.pem",
                    SslCertificatePem = "<<Public Cert pem file content>>",
                    SslKeyPem = "<<private cert pem file content>>",
                    EnableSslCertificateVerification = true,
                    ClientId = "test", 
                    Debug = "broker,topic,msg"
                };
                using (var producer = new ProducerBuilder<Null, string>(_producerConfig).Build())
                {
                    var response = await producer.ProduceAsync(topic, new Message<Null, string> { Value = request });
                }

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version. (latest)
  • Apache Kafka version.
  • Client configuration.
  • Operating system. (Windows)
  • Provide logs (with “debug” : “…” as necessary in configuration).
  • Provide broker log excerpts.
  • Critical issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
edenhillcommented, Jan 12, 2021

It was simply omitted to cut down scope. We’ll address this after the v1.6.0 release.

3reactions
edenhillcommented, Sep 17, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Spring RestTemplate to use an in-memory pem cert ...
My company's Operations team has a plan to provide a pem CA certificate to the application using an environment variable ($VAULT_CACERT). The ...
Read more >
Configure certificate authentication in ASP.NET Core
Double-click the SSL Settings option in the Features View window. Check the Require SSL checkbox, and select the Require radio button in the ......
Read more >
Configuring your SSL certificate for proper HTTPS | Looker
Configuring your SSL certificate for proper HTTPS · A certificate file named looker.pem that contains your primary certificate · An associated key ...
Read more >
Configure SQL Server Database Engine for encryption
This article describes how to configure SQL Server for certificates (Step 1) and change encryption settings of the SQL Server instance (Step 2)....
Read more >
HTTPS request with trust store for server certificates
If the web server presents a certificate issued and signed by a CA which root certificate is found in the trust store the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found