Set SSL CA Cert Pem via In-memory
See original GitHub issueDescription
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:
- Created 3 years ago
- Reactions:8
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It was simply omitted to cut down scope. We’ll address this after the v1.6.0 release.
PR here: https://github.com/edenhill/librdkafka/pull/3550