docker tls syslog:远程错误:tls:错误的证书

时间:2018-11-29 13:41:33

标签: docker ssl tls1.2 syslog

我有带TLS的远程syslog服务器。 openssl没有连接问题。

# openssl s_client -connect syslog.local:5514 -cert syslog.crt -key syslog.key -CAfile syslog.ca.crt
CONNECTED(00000003)

但是docker有问题:

docker run \
--rm \
--log-driver syslog \
--log-opt syslog-tls-cert=/etc/ca-certificates/syslog.crt \
--log-opt syslog-tls-key=/etc/ca-certificates/syslog.key \
--log-opt syslog-tls-ca-cert=/etc/ca-certificates/syslog.ca.crt \
--log-opt syslog-address=tcp+tls://syslog.local:5514 \
alpine echo hello world

docker: Error response from daemon: failed to initialize logging driver: remote error: tls: bad certificate.

该如何解决?

0 个答案:

没有答案