Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making consumer in Asp.Net using Confluent Kafka. Confluent kafka downloaded from Nuget package. I want to connect with remote server where kafka is deployed using SSL certificate. i am using config for connection

var configSSL = new ConsumerConfig
{
GroupId = groupID,
BootstrapServers = serverUrl,
SslCaLocation = "Config/testcert.p12",
SecurityProtocol = SecurityProtocol.Ssl,
AutoOffsetReset = AutoOffsetReset.Earliest,
Debug = "all",
};
I am not able to connect kafak server using SSL certificate and I am getting error %3|1593785896.458|SSL|rdkafka#consumer-1| [thrd:app]: .\crypto\bio\bss_file.c:175: error:02001003:system library:fopen:No such process: fopen('Config\testcert.p12','r')

What I have tried:

I am making consumer in Asp.Net using Confluent Kafka. Confluent kafka downloaded from Nuget package. I want to connect with remote server where kafka is deployed using SSL certificate. i am using config for connection

 var configSSL = new ConsumerConfig
            {
                GroupId = groupID,
                BootstrapServers = serverUrl,
               SslCaLocation = "Config/testcert.p12",             
                SecurityProtocol = SecurityProtocol.Ssl,               
                AutoOffsetReset = AutoOffsetReset.Earliest,
                Debug = "all",
            };
Posted
Updated 4-Jul-20 16:13pm

1 solution

This
Quote:
fopen:No such process: fopen('Config\testcert.p12','r')
in the error message is highly suggestive that it cannot find testcert.p12 or there are other issues with this certificate file

Since you don't indicate whether your in Windows or *nix (not that it really matters), please try fully qualifying the path to your testcert.p12 file

The other thing I would ask, is, are you sure testcert.p12 is the correct format, as opposed to testcert.pem ?
 
Share this answer
 
Comments
kaushalprasad 5-Jul-20 6:43am    
Thanks for your update. Now i fixed the issue of path and i am getting new error:
Error occurred: ssl.ca.location failed: No error

Yes, testcert.p12 is valid. I mean .p12 is valid extension .Developer in Java sucessfully able to connect with same certificate.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900