10.2.1. Procedure – Configuring TLS on the syslog-ng clients
Complete the following steps on every syslog-ng client host. Examples are provided using both the legacy BSD-syslog protocol (using the
network() driver) and the new IETF-syslog protocol standard (using the
Copy the CA certificate (for example
cacert.pem) of the Certificate Authority that issued the certificate of the syslog-ng server (or the self-signed certificate of the syslog-ng server) to the syslog-ng client hosts, for example into the
Issue the following command on the certificate: openssl x509 -noout -hash -in cacert.pem The result is a hash (for example
6d2962a8), a series of alphanumeric characters based on the Distinguished Name of the certificate.
Issue the following command to create a symbolic link to the certificate that uses the hash returned by the previous command and the
ln -s cacert.pem 6d2962a8.0
Add a destination statement to the syslog-ng configuration file that uses the
tls( ca-dir(path_to_ca_directory) )option and specify the directory using the CA certificate. The destination must use the
syslog()destination driver, and the IP address and port parameters of the driver must point to the syslog-ng server.
Include the destination created in Step 2 in a log statement.