0
votes

I am making kafka consumer using SSL Certificate in asp.net c#. Below is my config


            var configSSL = new ConsumerConfig
            {
                GroupId = groupID,
                BootstrapServers = serverUrl,
               SslCaLocation = "testcert.p12",            
                SecurityProtocol = SecurityProtocol.Ssl,              
                AutoOffsetReset = AutoOffsetReset.Earliest,                
                Debug = "all",
            };


I am getting error: Error occurred: ssl.ca.location failed: No error

1

1 Answers

0
votes

From the error, can not read the testcert.p12 file that you have define here

SslCaLocation = "testcert.p12", 

Can not find the file to read it, or not have permissions to read it, or is not the correct file