You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Ubuntu实例上Syslog-NG 4.5 TLS配置报错(peer did not return a certificate)排查求助

Azure Ubuntu实例上Syslog-NG 4.5 TLS配置报错(peer did not return a certificate)排查求助

大家好,我最近在Azure的Ubuntu实例上部署了最新版(4.5)的syslog-ng服务器,想配置它通过TLS接收云服务发送的syslog消息。这是一套测试用的基础配置,服务器用的是我自己生成的自签名证书。

不过启动服务器并触发云服务发送日志后,控制台弹出了这样的错误:

SSL error while reading stream; tls_error='error:1417C0C7:SSL routines:tls_process_client_certificate:peer did not return a certificate', location='/etc/syslog-ng/tls.conf:4:1'

我的syslog-ng配置文件内容如下:

@version:4.5

source demo_tls_source {
    tcp(port(6514)
        tls( key_file("/etc/syslog-ng/cert.d/syslog.key")
             cert_file("/etc/syslog-ng/cert.d/syslog.crt")
             ca_dir("/etc/syslog-ng/cert.d"))
    ); 
};

destination d_file { file("/var/log/fromnet"); };

log { source(demo_tls_source); destination(d_file); };

现在我不太清楚该从哪里入手排查这个问题,有没有熟悉syslog-ng TLS配置的朋友能给点建议?

备注:内容来源于stack exchange,提问作者NickDa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 11:00:26