大网数据广告活动
服务器运维问答

Syslog-NG TLS configuration issue (peer did not return a certificate)

· 52CE 我爱测

Configuring a syslog-ng server to receive syslog messages from a cloud service over TLS. The syslog-ng server is on an Ubuntu instance on Azure and the latest version (4.5). This is a basic configuration to test the implementatio…

问题原文

原帖链接 · NickDa · CC BY-SA 4.0

Configuring a syslog-ng server to receive syslog messages from a cloud service over TLS.

The syslog-ng server is on an Ubuntu instance on Azure and the latest version (4.5).

This is a basic configuration to test the implementation. I have created a self signed certificate for the server for testing.

When the server is run and have the cloud service send logs over, this error message is on the syslog server console:

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'

config file:

@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); };

Unsure how to troubleshoot this issue, any suggestions would be helpful.

已采纳解答

原帖链接 · Robert Fekete · CC BY-SA 4.0

Syslog-ng is configured for mutual authentication, so it expects a certificate from the client, but it seems that the cloud service doesn't send one. You can either:

  • configure your cloud service to send a certificate that syslog-ng can verify, or
  • configure syslog-ng to accept the connection without a certificate. For this option, see Disabling mutual authentication (the link points to the documentation of Axosyslog, which is a cloud-ready syslog-ng distribution maintained by the original creator of syslog-ng)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2024-01-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。