繁体   English   中英

SSL 证书错误:ssl.ca.location 失败

[英]SSL Certificate Error : ssl.ca.location failed

我正在使用 asp.net c# 中的 SSL 证书制作 kafka 消费者。 下面是我的配置


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


我收到错误:发生错误:ssl.ca.location failed: No error

从错误中,无法读取您在此处定义的testcert.p12文件

SslCaLocation = "testcert.p12", 

找不到要读取的文件,或者没有读取权限,或者不是正确的文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM